SQL Control Flow1
SQL Control Flow1
A package consists of a control flow and, optionally, one or more data flows. SQL Server Integration
Services provides three different types of control flow elements: containers that provide structures in
packages, tasks that provide functionality, and precedence constraints that connect the executables,
containers, and tasks into an ordered control flow.
The following diagram shows a control flow that has one container and six tasks. Five of the tasks are
defined at the package level, and one task is defined at the container level. The task is inside a
container.
The Integration Services architecture supports the nesting of containers, and a control flow can include
multiple levels of nested containers. For example, a package could contain a container such as a
Foreach Loop container, which in turn could contain another Foreach Loop container and so on.
Event handlers also have control flows, which are built using the same kinds of control flow elements.