K
Kevin Hodgson
I'm trying to import from a text file into a Sql DB, but I'm getting hung up
on a date field.
My text file has the date in the dd/mm/yyyy format.
I Cast that field to CDate in VB.NET, which sets it to #12/31/2005#
On my Insert, I get a SQL error from the .NET SqlClient Data provider:
"Syntax Error converting datetime from character string"
I tried not casting it as Date, which passed it into the parameter as
"2005-12-31" but that gave me the same error.
Does anyone have any ideas?
on a date field.
My text file has the date in the dd/mm/yyyy format.
I Cast that field to CDate in VB.NET, which sets it to #12/31/2005#
On my Insert, I get a SQL error from the .NET SqlClient Data provider:
"Syntax Error converting datetime from character string"
I tried not casting it as Date, which passed it into the parameter as
"2005-12-31" but that gave me the same error.
Does anyone have any ideas?