I'm trying to import some data from a text file into an SQL database in my Visual Studio project. All the columns have imported correctly apart from the date column. I used the following command to import the data:
BULK INSERT T2 FROM 'c:\Temp\Data.txt' WITH (FIELDTERMINATOR = ',')
In the text file i have dates like 02-02-12, 03-02-12, etc but in the database, all rows have been set to 01/01/1900. I thought this might have occured because the date formats are different in the text file comparing to the SQL database, does anyone know how i could import my dates into the database?
Thanks