Please try this.
1. Create an Object Type Variable at Package Level
2. Create SQL Task with SQL Statement as
SELECT 'YourTable1' AS [TableList]
UNION
SELECT 'YourTable2' AS [TableList]
UNION
SELECT 'YourTable3' AS [TableList]
UNION
SELECT 'YourTable4' AS [TableList]
Note: Change YourTable* with your table names.
3. Set the SQL Task Result Set to "Full result set" and map this results to the variable created in step 1
Ref:
https://msdn.microsoft.com/en-us/library/ms141689(v=sql.120).aspx[
^]
4. Create a String Type variable at Package Level (ParTableName).
5. Create a Foreach Container, and set it as ADO Enumerator and set ADO Object Source variable to variable created in Step1
Under Variable mappings select the variable created in Step 4 (its index will be = 0)
Ref:
Using the Foreach ADO Enumerator in SSIS[
^]
6. Now create a SQL Task inside Foreach Container. This will execute your store proc against tables
SQL Statement will be:
EXEC [YourStoredProc] ?
Now map a parameter your SQL Task
Ref:
https://msdn.microsoft.com/en-us/library/ms140355(v=sql.120).aspx[
^]
Let me know how it goes!
Thanks,
Kuthuparakkal