的正確的數據類型我有一個簡單SSIS包挑選從Oracle數據庫和數據插入數據到SQL Server。在DataFlow中,我有3個任務:SSIS不能確定列
- 我有一個OLE DB源運行一個非常簡單的查詢。選擇 Col1中,col2的,COL3,COL4,COL5,COL6,COL7從表。
- 然後我有轉換COL6一個數據轉換任務,並從Unicode字符串[DT_WSTR]至STRING [DT_STR] COL7。
- OLE DB目標(SQL服務器)。
ERROR: SSIS turns the OLE DB Source Task to Red and displays the following error:
There was an error with output column "Col3" (23) on output "OLE DB Source Output" (11). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".
The "output column "Col3" (23)" failed because truncation occurred, and the truncation row disposition on "output column "OS_VISIT_ID" (23)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
但是COL3不文本其數值,和SSIS正在檢測它作爲Unicode字符串[DT_WSTR]。 我甚至試圖在數據轉換任務轉換爲OLE DB目標之前將Col3轉換爲數字。但我仍然得到同樣的錯誤。