Hi,
I am trying to load large data which is available in .CSV file format. I am getting below error,
Below is the BCP utility i am using,
I tried to skip the first row as it contains header by using following query. Still the same issue occurs,
Also would like to mention here that, the total length of the data in the column header for the column #20 is 16 and i have defined the data type for that column as varchar(100).
Please let me know, what might be the problem for this.
I am trying to load large data which is available in .CSV file format. I am getting below error,
SQL:
Msg 4866, Level 16, State 1, Line 1
The bulk load failed. The column is too long in the data file for row 1, column 20. Verify that the field terminator and row terminator are specified correctly.
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)".
Below is the BCP utility i am using,
Code:
BULK INSERT dbo.CSI_ZIPCODE_BE
FROM '\\10.48.164.48\Datamove1\REAS\Case Schiller Index\Load Test\CSI_Bulk_Export_by_ZIP_201312.CSV'
WITH
(
FIELDTERMINATOR = ','
, ROWTERMINATOR = '\n');
I tried to skip the first row as it contains header by using following query. Still the same issue occurs,
Code:
BULK INSERT dbo.CSI_ZIPCODE_BE
FROM '\\10.48.164.48\Datamove1\REAS\Case Schiller Index\Load Test\CSI_Bulk_Export_by_ZIP_201312.CSV'
WITH
(
FIRSTROW=2,
FIELDTERMINATOR = ','
, ROWTERMINATOR = '\n');
Also would like to mention here that, the total length of the data in the column header for the column #20 is 16 and i have defined the data type for that column as varchar(100).
Please let me know, what might be the problem for this.