我有 4GB 文件并尝试使用以下脚本将数据加载到表中。它引发了以下错误。请提出可能的原因。
文件大小:4GB 文件中的列数:329
表有 329 列,每列都有 varchar(1000)。
BULK
INSERT npi_db
FROM 'c:\data_20050523-20121008.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
但我得到:
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.