的正确的数据类型我有一个简单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转换为数字。但我仍然得到同样的错误。