Export (0) Print
Expand All

Foreach Loop Editor (Variable Mappings Page)

Use the Variables Mappings page of the Foreach Loop Editor dialog box to map variables to the collection value. The value of the variable is updated with the collection values on each iteration of the loop.

To learn about how to use the Foreach Loop container in an Integration Services package, see Foreach Loop Container . To learn about how to configure it, see Configure a Foreach Loop Container.

The Microsoft SQL Server Integration Services tutorial, Creating a Simple ETL Package Tutorial, includes a lesson that teaches you to add and configure a Foreach Loop.


Select an existing variable, or click <New variable...> to create a new variable.

Note Note

After you map a variable, a new row is automatically added to the Variable list.

Related Topics: Integration Services (SSIS) Variables, Add Variable


If using the Foreach Item enumerator, specify the index of the column in the collection value to map to the variable. For other enumerator types, the index is read-only.

Note Note

The index is 0-based.

Related Topics: Loop through Excel Files and Tables by Using a Foreach Loop Container


Select a variable, and then click Delete.

Community Additions

© 2014 Microsoft