当我使用批量加载SQL服务器中的数据时,我遇到了问题 loader(SQL loader)。这里我通过java代码生成我的文件 我写行终止符的行尾。
my code is -
BULK INSERT ExcelFile
FROM 'D:\201606162171840OwnersImportFormat.csv'
WITH
(
-- FIRSTROW = 2,
FIELDTERMINATOR = ',', --CSV field delimiter
ROWTERMINATOR = '\n' ,
FirstRow = 1 --Use to shift the control to next row
-- ERRORFILE = 'D:\SchoolsErrorRows.csv',
-- TABLOCK
);
I am getting the error like Bulk load data conversion error (truncation) for
row 1, column 56 (File_upload).
Please tell me where I am going wrong.