我想在SSIS中使用execute sql命令設置字符串變量。在SSIS中設置字符串變量
對於這個任務,我已經實現了這個表達式:
"select" [email protected][User::ID]+ "= columnA
from table
where columnB = '123' "
只是爲了檢查,我在我已經加入了正確的方式和腳本任務來顯示這樣做,用一個消息框,可變
值但是,當我執行任務,我正從執行SQL任務此錯誤信息:
[Execute SQL Task] Error: Executing the query ""select" [email protected][User::ID]+ "= >columnA from table where columnB = '123' " ..." failed with the following error: "Incorrect syntax near '='.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
我自己也嘗試以此爲榜樣,但始終與一個錯誤的答案 http://dataqueen.unlimitedviz.com/2012/08/how-to-set-and-use-variables-in-ssis-execute-sql-task/
非常感謝! @Ala – d2907
不客氣@ d2907。如果能回答你的問題,你能否將其標記爲可接受的答案? – BICube