我有一个excel文件。我想将数据从excel文件中提取到SQL Server表中。数据成功传输。在excel文件中,我从一行中删除了一列名为Risk
的文本。文本很长。现在,程序包执行失败,即源于excel文件。该错误显示为从Excel文件检索数据时出错
[Audit [1]] Error: There was an error with output column "Risk" (100)
on output "Excel Source Output" (9). The column status returned was:
"DBSTATUS_UNAVAILABLE".
和
[Audit [1]] Error: SSIS Error Code
DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "Risk"
(100)" failed because error code 0xC0209071 occurred, and the error
row disposition on "output column "Risk" (100)" specifies failure on
error. An error occurred on the specified object of the specified
component. There may be error messages posted before this with more
information about the failure.
,当我从该行删除此特定的文本,并出现错误,当我清除整个数据除列名,并重新输入新的数据。即使我使用相同的名称和相同的列名替换具有不同数据的Excel文件。
当你说你“删除了文本”时,你究竟做了什么?你是否手动打开了excel文件并删除了整个列,是否删除了该列中的单个单元格,是否用空格替换了列? – 2010-05-27 09:57:42
我删除了该列中的单个单元格。如果单元的长度低于256,则会发生相同的错误。它只发生在特定的细胞。 – 2010-05-27 10:00:56
或者什么是从excel文件导入数据到sql server的正确方法? – 2010-05-28 11:18:47