字符串类型不匹配
错误信息:
[Local HR Data [2]] Error: There was an error with Local HR Data.Outputs[OLE DB Source Output].Columns[DivisionC] on Local HR Data.Outputs[OLE DB Source Output]. The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".
在Division处截断,DivisionC的字符串类型不匹配
解决方案:
修改字段的字符串类型:
(1)先在数据源编辑将数据类型改为nvachar类型---------注意:字符串长度要一致
(2)在高级编辑里, 将有问题的字段类型更改为Unicode String(nvarchar类型)类型
(3)在数据转换控件里, 修改转换字符串类型,修改:Data Type--String Code Page----936
(4)在OLE DB Command中, 修改错误字符串名称
(5)在OLE DB DISTINATION中,修改错误字段名称
SSIS错误信息解决1(字符串类型不匹配)
时间: 2024-12-07 06:33:59