Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
variable looping
variable looping
Rate Topic
Display Mode
Topic Options
Author
Message
sathiyan00
sathiyan00
Posted Monday, February 18, 2013 8:18 PM
Valued Member
Group: General Forum Members
Last Login: 2 days ago @ 6:11 AM
Points: 60,
Visits: 322
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
Post #1421412
joeroshan
joeroshan
Posted Monday, February 18, 2013 9:14 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:45 AM
Points: 572,
Visits: 1,157
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
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #1421417
sathiyan00
sathiyan00
Posted Tuesday, February 19, 2013 1:46 AM
Valued Member
Group: General Forum Members
Last Login: 2 days ago @ 6:11 AM
Points: 60,
Visits: 322
thanks joe
Post #1421475
joeroshan
joeroshan
Posted Tuesday, February 19, 2013 2:01 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:45 AM
Points: 572,
Visits: 1,157
You are welcome.
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #1421480
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.