?
Solved

FOREACH ADO Enumerator and SSIS

Posted on 2007-07-20
2
Medium Priority
?
2,338 Views
Last Modified: 2013-11-30
In SSIS, if I want to loop through a table, pulling out one column in that table based on certain criteria, how do I loop through each returned row?  I beleive it is the FOREACH ADO enumerator, but I can't find a simple example on how to put one together.  More importantly, how to build the dataset within the FOR EACH loop.  If someone could point me to, or give me an example of how to set up a simple FOREACH loop that takes a query from a table, returns one column, and runs a query on each row return from that column, I would be grateful.
Thanks.
0
Comment
Question by:martindoll
2 Comments
 
LVL 1

Accepted Solution

by:
vjammy earned 1000 total points
ID: 19554524
I found this to be extremely useful to understand how the ADO enumerator works:
http://www.codeproject.com/useritems/foreachadossis.asp
I was able to make my code work after lookign through this example.
0
 

Author Comment

by:martindoll
ID: 19555269
Perfect.  Exactly what I was looking for.  Thanks for your help!!!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question