一个奇怪数据导入问题

tpxc 2011-03-16 11:28:47
今天对一个数据库做数据导入操作,数据源是excel表格. 导入途中报错. 报错如下. 后来发现时数据源中的一个字段的某个单元格的长度大于255 . 随后修改数据库相应字段.但是无论修改何种长度(最后选了MAX) 导入的时候还是报错. 最后我无奈的把数据源中操作255的字段都清空了,导入成功. 各位是否碰到过类似问题?

Messages
Error 0xc020901c: Data Flow Task: There was an error with output column "fittings_name" (108) on output "Excel Source Output" (9). The column status returned was: "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: The "output column "fittings_name" (108)" failed because truncation occurred, and the truncation row disposition on "output column "fittings_name" (108)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task: The PrimeOutput method on component "Source - Query$" (1) returned error code 0xC020902A. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
(SQL Server Import and Export Wizard)

Error 0xc0047021: Data Flow Task: Thread "SourceThread0" has exited with error code 0xC0047038.
(SQL Server Import and Export Wizard)

Error 0xc0047039: Data Flow Task: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.
(SQL Server Import and Export Wizard)

Error 0xc0047021: Data Flow Task: Thread "WorkThread0" has exited with error code 0xC0047039.
(SQL Server Import and Export Wizard)

...全文
225 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
AcHerat 元老 2011-03-16
  • 打赏
  • 举报
回复
也有可能你那个255的字段有导入的分隔符存在!
tpxc 2011-03-16
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 qianjin036a 的回复:]
或者有可能EXCEL中使用了全并单元格的功能.
[/Quote]
Excel中肯定没有合并单元格...
middlearth 2011-03-16
  • 打赏
  • 举报
回复
我的同事碰到过这样的问题
-晴天 2011-03-16
  • 打赏
  • 举报
回复
或者有可能EXCEL中使用了全并单元格的功能.
ljking0731 2011-03-16
  • 打赏
  • 举报
回复
把EXCEL的数据全部粘贴到TXT上,然后从txt导入
tpxc 2011-03-16
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 acherat 的回复:]
也有可能你那个255的字段有导入的分隔符存在!
[/Quote]
导入的时候都是一个字段对应一个字段的.我要导入的那个字段分隔符都是; 但是这个应该和分隔符不大噶..

34,576

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧