SSIS 之 Exception "truncated if it exceeds the maximum length of 4000 characters"

問題:

Error Desc: The result string for expression "SELECT  ID, ......from users  WITH (NOLOCK) where id in  ( " + @[User::IDSQLCondition]"may be truncated if it exceeds the maximum length of 4000 characters.The expression could have a result value that exceeds the maximum size of a DT_WSTR.


解決方案:原因是SQL 查詢語句太長,超過最長字數, 所以修改sql語句,通過減少變量@[User::IDSQLCondition]的值或分多次查詢再整合,即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章