我試圖從Excel
導入文件到SQL table
。當我從unicode string[DT_WSTR]
轉換爲string[DT_STR]
與數據轉換我得到一些列上的截斷錯誤。這是輸出錯誤:SSIS截斷錯誤返回狀態4
[Data Conversion [2]] Error: Data conversion failed while converting column "Contact Name" (187) to column "DataContactName" (105). The conversion returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
所以數據流光潔度失敗,但一些行復制到sql table
。 有沒有一些解決方法或解決方案?
這取決於您希望解決方案是什麼。你是否想忽略錯誤,因爲你對轉換/截斷沒問題,或者你想知道如何改變你的目標模式以避免錯誤,或者你想確保所有的行都被複制或者沒有他們是? –