Reputation: 77
I am using SSIS to do data transfer from OLEDB SQL to OLEDB SQL. Both databases are SQL Server.
I have over 100 tables to transfer data from database-A to database-B (truncate-insert) and I want to do this with dynamic data task flow & one package.
Each table has different column names.
My steps:
There is a parameter table includes source-table select statement / source table name / target table name.
I've created variable to set parameter tables results ( source table select / target table etc.) and variables are set to default values.
I've created "Execute Script Task" to read my parameter table and assigned result set to object variable (Var_Sytem_Object)
I've created "Foreach Loop Container"
In the collection tab
In the variable mappings tab
I've created "Data Flow Task"
After this configuration, when I executed package second loop takes error in the second loop of container.
Because of error, mapping wants same column mapping. Is there any way to manage dynamic column mapping or another way to transfer data in one package.
Upvotes: 0
Views: 830
Reputation: 21
I will use a script task for this.
Upvotes: 0