I have a String to Date conversion problem using SQL Bulkcopy in asp.net 3.5 with C#
I read a large CSV file (with CSV reader). One of the strings read should be loa
It's not entirely clear how you're using SqlBulkCopy
, but ideally you shouldn't be uploading the data to SQL Server in string format at all: parse it to a DateTime
or DateTimeOffset
in your CSV reader (or on the output of your CSV reader), and upload it that way. Then you don't need to worry about string formats.