|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Sunday, May 12, 2013 9:57 PM
Points: 14,
Visits: 94
|
|
Hi all,
I have a requirement like, In my table have a data as shown below
Table:-
ID Tablename --------------------------- 1 Table1 2 Table2 3 Table3 . . . N Tablen
I need a package to pick each tablename column value and assign that to variable and used it in next tasks in package.
Thanks
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 9:27 PM
Points: 6,695,
Visits: 11,711
|
|
You can select values from your table into a Variable of Type Object using an Execute SQL Task. Then you can iterate over that Variable using the ForEach Loop Container (FELC) setup with an Enumerator of type Foreach ADO Enumerator. The FELC can assign each column in the resultset to a different variable so you can work with variables that contain the name and id in Tasks contained within the FELC.
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Sunday, May 12, 2013 9:57 PM
Points: 14,
Visits: 94
|
|
Thanq very much for you approch, It work for me
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 9:27 PM
Points: 6,695,
Visits: 11,711
|
|
You're welcome. Thanks for the feedback.
__________________________________________________________________________________________________ There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|