To support a complete restart of a mapping that writes to a relational target, write an SQL command that the Data Integration Service runs to delete target rows before it reads the source.
Select the Mapping task in the editor.
In the
Properties
view, click the
General
tab.
Click the name of the mapping that the task runs.
The mapping opens.
Select the relational data object in the editor.
In the
Properties
view, click the
Advanced
tab.
In the
Value
column for the
PreSQL
property, click the
Open
button.
The
SQL Query
editor appears.
Enter an SQL command and then click
OK
.
The Developer tool does not validate the SQL.
The following figure shows an SQL command that deletes all rows written today from the table named DEPT: