导入到 SQL

发布于 2024-11-04 12:52:35 字数 1063 浏览 0 评论 0原文

Import.csv

我正在使用导入向导将此 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)

数据库排序规则为阿拉伯_CS_AI,而导入向导将代码页属性设置为 1256,且未选中 Unicode。

Import.csv

I am using Import Wizard to import this excel file into sql but everytime no matter what i try i receive a truncation error resulting in not importing it obviously.

- 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)

The database collation is Arabic_CS_AI while import wizard has the code page property set to 1256 with the Unicode unchecked.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亢潮 2024-11-11 12:52:35

大多数时候,当您收到截断错误时,这是​​因为您要导入数据的列之一不够大。

删除尾随和前导空格可能有助于解决此问题。

Most of the time, when you receive a truncate error, it is because one of the columns you are importing your data to is not big enough.

Removing the trailing and leading spaces might help with this problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文