sql server - bulk insert error

Posted by user554134 on Stack Overflow See other posts from Stack Overflow or by user554134
Published on 2012-12-04T22:47:16Z Indexed on 2012/12/04 23:03 UTC
Read the original article Hit count: 151

Filed under:
|

I am using bulk insert and getting below error:

Note: The data in the load file is not beyong the configured column length

Running Command:

bulk insert load_data from 'C:\temp\dataload\load_file.txt' with (firstrow = 1, fieldterminator = '0x09', rowterminator = '\n',MAXERRORS = 0, ERRORFILE = 'C:\temp\dataload\load_file')

Contents of load file:

user_name   file_path   asset_owner   city      import_date    
admin       C:\         admin         toronto   04/12/2012

Error:

Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 1, column 6 (validated).
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error. Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server