我已经创建了一个包含OLEDB源和OLEDB目标的数据流任务。OLEDB源的数据访问模式为: SQL Command From Variable。该变量名为: SQLQuery。SQLQuery的设计时间值为:
select '' as PersonNo from PersonSSIS包抛出以下错误:
[OLE DB Source [963]] Error: The "output column "PersonNo" (1051)" failed because truncation occurred, and the truncation row disposition on "output column "Surname" (1051)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.我不理解这个错误。但是,如果我这样做,它似乎是有效的:
从人员中选择'1111111111‘作为PersonNo
我可以在SQL查询中指定PersonNo的长度吗?
发布于 2015-05-29 22:52:34
而应该使用NULL,比如
SELECT NULL AS PersonNo FROM Personhttps://stackoverflow.com/questions/30532573
复制相似问题