Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulk insert a text file with date format issue

Status
Not open for further replies.
Mar 20, 2003
103
0
0
AU
Im getting this error when I try doing a bulk insert:

Server: Msg 4864, Level 16, State 1, Line 1
Bulk insert data conversion error (type mismatch) for row 2, column 3 (last_sales_date).

This is how the txt file looks like:

ID,NAME,LAST_SALES_DATE
----------------------
10|Terry|30/06/1999

In the database the LAST_SALES_DATE field type is set to DATETIME.


Can someone please help me with this? Below is the bulk insert I am using

BULK INSERT CUSTOMER_DEALER FROM '\\test\customer_dealer.txt' WITH (MAXERRORS=0, FIRSTROW=2,FIELDTERMINATOR = '|');

 
Seems wrong data in the date field or format
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top