Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 3.29 KB

split-a-dataset-by-using-the-conditional-split-transformation.md

File metadata and controls

65 lines (43 loc) · 3.29 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Split a Dataset by Using the Conditional Split Transformation
Split a Dataset by Using the Conditional Split Transformation
chugugrace
chugu
03/01/2017
sql
integration-services
how-to
Conditional Split transformation
splitting dataset
datasets [Integration Services], splitting

Split a Dataset by Using the Conditional Split Transformation

[!INCLUDEsqlserver-ssis]

To add and configure a Conditional Split transformation, the package must already include at least one Data Flow task and a source.

To conditionally split a dataset

  1. In [!INCLUDEssBIDevStudioFull], open the [!INCLUDEssISnoversion] project that contains the package you want.

  2. In Solution Explorer, double-click the package to open it.

  3. Click the Data Flow tab, and, from the Toolbox, drag the Conditional Split transformation to the design surface.

  4. Connect the Conditional Split transformation to the data flow by dragging the connector from the data source or the previous transformation to the Conditional Split transformation.

  5. Double-click the Conditional Split transformation.

  6. In the Conditional Split Transformation Editor, build the expressions to use as conditions by dragging variables, columns, functions, and operators to the Condition column in the grid. Or, you can type the expression in the Condition column.

    [!NOTE]
    A variable or column can be used in multiple expressions.

    [!NOTE]
    If the expression is not valid, the expression text is highlighted and a ToolTip on the column describes the errors.

  7. Optionally, modify the values in the Output Name column. The default names are Case 1, Case 2, and so forth.

  8. To modify the sequence in which the conditions are evaluated, click the up arrow or down arrow.

    [!NOTE]
    Place the conditions that are most likely to be encountered at the top of the list.

  9. Optionally, modify the name of the default output for data rows that do not match any condition.

  10. To configure an error output, click Configure Error Output. For more information, see Debugging Data Flow.

  11. Click OK.

  12. To save the updated package, click Save Selected Items on the File menu.

See Also

Conditional Split Transformation
Integration Services Transformations
Integration Services Paths
Integration Services Data Types
Data Flow Task
Integration Services (SSIS) Expressions