You can add constraints to relational data objects, flat file data objects, customized data objects, logical data objects, and virtual tables. After you add a constraint, you can edit or delete the constraint.
From the
Object Explorer
view, open the mapping that contains the relational data object added as a Read transformation. Or, open the flat file data object, customized data object, logical data object, or virtual table.
To set constraints on a relational data object added to a mapping as a Read transformation, select the Read transformation in the mapping. On the
Properties
view, select the
Advanced
tab.
To set constraints on a flat file data object, select the
Advanced
view and expand the
Run-time: Read
section.
To set constraints on a customized data object, select the
Read
view and select the
Output
port of the source transformation. On the
Properties
view, select the
Advanced
tab.
To set constraints on a logical data object, select a logical data model and select the logical data object. On the
Properties
view, select the
Advanced
tab.
To set constraints on a virtual table, open the virtual table from the SQL endpoint. On the
Properties
view, select the
Advanced
tab.
Click the value field for constraints.
The
Constraints
dialog box appears.
Click
New
to open the Expression editor.
Configure the constraint logic and use expression functions and columns as parameters.