Foreach Loop Container
While designing the workflow of an SSIS package, you may want to perform an operation on a collection. For example, you may want to read the names of the files in a folder and set the values of your variables using those names, or you may want to perform logic on each of the records in a table. The Foreach Loop container in SSIS provides this functionality by bringing the result set into the workflow; this lets you perform interesting work based on the data in the result set.
The Foreach Loop container defines an iterative workflow—that is, a repeating control flow in a package. This concept has been borrowed from programming languages. SSIS has made enumerating over a collection a lot easier by providing the Foreach Loop ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access