I have placed a execute sql task inside the foreach loop container , where i want to execute the stored procedure name obtaining from the ssis user defined variable
But i am not finding a right syntax to execute stored procedure name from variable. and i want to pass input parameter to execute the stored procedure which is also a another dts variable
Please can any one help to figure out the right syntax

Lets say you have two variables
StoredProcedureNameandParameterValueCreate a new variable called
QueryString. Open up the properties window by pressing F4 and then click on the variable name in the window that has list of variables. Set theEvaluateAsExpressionproperty of yourQueryStringvariable to True.Then click the elliptical in
Expressionto open up the Expression Builder. Type the following expressionClick on Evaluate Expression and you should see
Execute MyProcedure @ParameterName = 'SomeValue'Assign this variable to your
SourceVariablefor the Execute SQL Task.