I have failed to load a text file's data to my db's table with the persistent error
invalid time format.
I have changed the time format to include a T between the date and time, to no avail. I also substituted the year, month, date delimiter from . to - but the error persisted.
This is how I am attempting to load from a txt file
bcp mydb.dbo.mytable in c:\data.txt -T -S myserver\instance
I then proceed to confirm data types of the fields, prefix-length (this is the length of the delimiter before the field... right?) and the field terminator. I create a format file which when used still yields the same error. The datetime field I am importing is one of four other fields in a typical row.
What am I missing?
EDIT
Here is a typical row
14,1999-01-04T08:08:24.000,1.36000,1.36000
I have also failed when using SSIS my prior work around of first using access is not applicable here. It is either bcp or SSIS