execute-sql-task

I have two Foreach Loop,which hava same enumerated values.So how do I deal with it?

守給你的承諾、 提交于 2019-12-24 00:26:28
问题 I declare two variables as "Object" named a and b, and have a simple SQL task:. select code from code_list Using Full result set, I'm trying to pass the result to the variables declared(a and b) , and use them(a and b) on Script Task with two different foreach loops 。But it didn't work. Script Task: insert the result into two different tables(A and B). 回答1: Create 3 variables of type Object, only use one as ResultSet. Then Add a Script Task, and select 3 variables as Read/Write Variables.

How to use a variable value created in an Execute SQL Task in Precedence Constraint Editor?

走远了吗. 提交于 2019-12-10 16:40:02
问题 I need to run n-multiple Execute SQL Task based on n-multiple variable value (isnull true or false). This variable is created in a ssms script in the previous execute sql task (CONDITIONAL QUERY). How can I output the variable value from the ssms script to the conditional expression in ssis? my two variables are @beneficiary and @gempar . They either store a date type value or null. 回答1: Your conditional query task should have a "Result Set" set to a "Single Row", just like on a screenshot: