我正在使用导入向导将此excel文件导入到sql中,但每次无论我尝试什么,我都会收到截断错误,导致显然无法导入。
- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Column 0" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)
Error 0xc020902a: Data Flow Task 1: The "output column "Column 0" (10)" failed because truncation occurred, and the truncation row disposition on "output column "Column 0" (10)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:\Users\crover\Downloads\فراشات حواء-2\farashat.csv" on data row 17.
(SQL Server Import and Export Wizard)
数据库排序规则是Arabic_CS_AI,而导入向导的代码页属性设置为1256且未选中Unicode。
答案 0 :(得分:0)
大多数情况下,当您收到截断错误时,这是因为您要导入数据的其中一列不够大。
删除尾随和前导空格可能有助于解决此问题。