February 18, 2013 at 8:18 pm
Hi all,
i have one ssis package which has to read file name from table and assign it to one object type variable.
but how to use for each loop container to loop through each file name in the object variable and read corresponding file to insert records into table.
thanks
February 18, 2013 at 9:14 pm
Following link give you example of using foreach loop for ado
http://www.codeproject.com/Articles/14341/Using-the-Foreach-ADO-Enumerator-in-SSIS
Create an execute sql task that returns full resultset
You should first create a variable to hold the output of the loop.
In the data flow task you shoul create a flat file source,
you can use expression for source connection using the variable
February 19, 2013 at 1:46 am
thanks joe
February 19, 2013 at 2:01 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply