I have a scenario where I need to fetch data from Database 1 on Server 1 and insert into Database 2 on Server 2 on a particular condition.
I am using SSIS 2008.
First I fetch an ID from
Database 2usingExecute SQL Task.Then, I use the ID from step 1 and fetch a set of rows from
Database 1again using anotherExecute SQL TaskI now want to insert these fetched rows back into
Database 2.
I guess I should probably use a Foreach Container but I feel that there should be a better way to do the step 2 using a Data Flow Task`.
I know there is a way to pass parameters (ID) using Execute SQL Task but I cannot find a way to pass the the output of the Execute SQL Task (ID) as an input to the data flow task.
Is it possible? Or is there a better way to do what I am trying to achieve?