sql - Read column values to variable in SSIS using for each loop -
i want read resultset of table using following stmt:
select col1 a,col2 b tablename; then, want read each row of result set local variables of ssis package , each row have pass values script task.
i want use foreach loop in ssis. took foreach item enumerator.
the question: how read values variable using each item enumerator , how can iterator can use select count(*) table; pass value variable , asssign count value in foreach loop.
i'm stuck @ how assign count value , read columns variables. can these?
thanks in advance.
i'm not sure you're trying do, seem you're trying process data in control flow. foreach iterator not made processing data sets, it's made iterating on multiple data sets , doing each of them, passing them data flow.
you might find more useful create data flow. start data source component gets data want , pass data script component processing.
Comments
Post a Comment