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.





SELECTstatementin a Execute T-SQL Task my using theResultSetsetting in General Pane, and then mapping the individual columns (if using Single Row) or the dataset object (if using Full result set) to a variable in theResult Setpane. Or, if you're using a Stored Procedure withOUTPUTparameters, you map them in the Parameter Mapping pane (unsurprisingly).OUTPUTparameters are part of a Stored Procedure; you can't have them as part of an inline statement. If you want to use those, you'll need to convert your SQL to a Stored procedure.