在控制流中添加或删除任务或容器Add or Delete a Task or a Container in a Control Flow

在控制流设计器中工作时, SSISSSIS 设计器中的工具箱会列出 Integration ServicesIntegration Services 为在包中生成控制流而提供的任务。When you are working in the control flow designer, the Toolbox in SSISSSIS Designer lists the tasks that Integration ServicesIntegration Services provides for building control flow in a package. 有关这些工具箱的详细信息,请参阅 SSIS ToolboxFor more information about the Toolbox, see SSIS Toolbox.

包可以包含同一任务的多个实例。A package can include multiple instances of the same task. 任务的每个实例在包中都唯一标识,因此可以分别配置每个实例。Each instance of a task is uniquely identified in the package, and you can configure each instance differently.

如果删除任务,则将该任务连接到控制流中其他任务和容器的优先约束也将被删除。If you delete a task, the precedence constraints that connect the task to other tasks and containers in the control flow are also deleted.

下面的过程介绍如何在包的控制流中添加或删除任务或容器。The following procedures describe how to add or delete a task or container in the control flow of a package.

将任务或容器添加到控制流To add a task or a container to a control flow

  1. SQL Server Data Tools (SSDT)SQL Server Data Tools (SSDT)中,打开包含所需包的 Integration ServicesIntegration Services 项目。In SQL Server Data Tools (SSDT)SQL Server Data Tools (SSDT), open the Integration ServicesIntegration Services project that contains the package you want.

  2. 在解决方案资源管理器中,双击该包将其打开。In Solution Explorer, double-click the package to open it.

  3. 单击 “控制流” 选项卡。Click the Control Flow tab.

  4. 若要打开 “工具箱” ,请单击 “查看” 菜单上的 “工具箱”To open the Toolbox, click Toolbox on the View menu.

  5. 展开 “控制流项”“维护任务”Expand Control Flow Items and Maintenance Tasks.

  6. 将任务和容器从 “工具箱” 拖动到 “控制流” 选项卡的设计图面。Drag tasks and containers from the Toolbox to the design surface of the Control Flow tab.

  7. 将任务或容器的连接线拖动到控制流中的另一组件,从而连接包控制流内的任务或容器。Connect a task or container within the package control flow by dragging its connector to another component in the control flow.

  8. 若要保存更新后的包,请单击 “文件” 菜单上的 “保存选定项”To save the updated package, click Save Selected Items on the File menu.

从控制流删除任务或容器To delete a task or a container from a control flow

  1. SQL Server Data Tools (SSDT)SQL Server Data Tools (SSDT)中,打开包含所需包的 Integration ServicesIntegration Services 项目。In SQL Server Data Tools (SSDT)SQL Server Data Tools (SSDT), open the Integration ServicesIntegration Services project that contains the package you want.

  2. 在解决方案资源管理器中,双击该包将其打开。In Solution Explorer, double-click the package to open it. 执行下列操作之一:Do one of the following:

    • 单击“控制流” 选项卡,右键单击要删除的任务或容器,然后单击“删除” 。Click the Control Flow tab, right-click the task or container that you want to remove, and then click Delete.

    • 打开 包资源管理器Open Package Explorer. 在“可执行文件” 文件夹上,右键单击要删除的任务或容器,然后单击“删除” 。From the Executables folder, right-click the task or container that you want to remove, and then click Delete.

  3. 若要保存更新后的包,请单击 “文件” 菜单上的 “保存选定项”To save the updated package, click Save Selected Items on the File menu.

另请参阅See Also

Integration Services 任务 Integration Services Tasks
Integration Services 容器 Integration Services Containers
控制流Control Flow