我有一個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