Inserting C# datetime milliseconds into sql Server DateTime
From: tk042383 (tkirkman_at_edisoncarter.com)
Date: 05/04/04
- Next message: Robert Samuel White: "Re: populate treeview from single table parent-child relationship"
- Previous message: Paul: "Re: can you bind to a drop down list"
- Next in thread: Nicole Calinoiu: "Re: Inserting C# datetime milliseconds into sql Server DateTime"
- Reply: Nicole Calinoiu: "Re: Inserting C# datetime milliseconds into sql Server DateTime"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 03 May 2004 20:18:01 -0400
On a C# datetime value I am using ToString(format) to specify a format of
"d/M/yyyy H:mm:ss:ffff" in trying to insert the value including its
milliseconds precision into a sqlServer 2000 DateTime column. I get error
241: "Syntax error converting to datetime from character string".
How do I insert the datetime value into a DateTime column so that it will
include the milliseconds component?
- Next message: Robert Samuel White: "Re: populate treeview from single table parent-child relationship"
- Previous message: Paul: "Re: can you bind to a drop down list"
- Next in thread: Nicole Calinoiu: "Re: Inserting C# datetime milliseconds into sql Server DateTime"
- Reply: Nicole Calinoiu: "Re: Inserting C# datetime milliseconds into sql Server DateTime"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|