0
我已經創建了一個包含OLEDB源和OLEDB目標的數據流任務。 OLEDB源具有數據訪問模式:來自變量的SQL命令。該變量稱爲:SQLQuery。的SQLQuery的設計時間值是:[OLE DB Source [963]]錯誤
select '' as PersonNo from Person
SSIS包拋出以下錯誤:
[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的長度?
'SELECT CAST( '' 爲varchar(10))作爲PersonNo'? – Lamak