I have 4GB file and trying to load the data into table using below script. It's raising the below error. Please suggest possible causes.
File size: 4GB columns in the file: 329
table having 329 columns, every column having varchar(1000).
BULK
INSERT npi_db
FROM 'c:\data_20050523-20121008.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
but I am getting:
The bulk load failed. The column is too long in the data file for row 1,
column 329. Verify that the field terminator and row terminator are specified correctly.