Creating A Target Variable

Target variables allow you to reference a value from a target field that can then be used in formulas in other target steps.

To Create A Target Variable

  1. Do one of the following in Workbench to open the Target User Variable Properties dialog box:
  2. Click Add Target. The Target User Variable Properties dialog box appears.
  3. Enter a name for the variable in Variable Name.
  4. If this DTS has more than one target connection, select the connection that contains the data object or step for this variable from the Target Connection drop-down list.
  5. Specify the filter type, either Data Object or Step:
  6. Select from the Field drop-down list a field of the data object or step you selected in step 4. This field or value can be used in formulas for subsequent steps.

    Note: Because Target Variables do not support binary data, binary target fields are not included in the list.

  7. Optionally, enter Help Text that describes the variable.
  8. Click OK. If any required information is missing or if any invalid values were provided, a message appears. Otherwise, the new variable appears under User Variables in the Variables dialog box.

See also

About Target Variables

Creating a SQL Query

Formula Editor

Using System Variables

Managing User Variables