为什么我会在第1行第56列(File_upload)中获得批量加载数据转换错误(截断)?

时间:2016-06-10 12:53:54

标签: sql-server

当我使用批量加载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.

Click here to see file data and table structure

0 个答案:

没有答案