...
...
...
...
...
...
...
Go to Services > Schema and then click Database. The action will show you the Manage Database Schema screen (see Figure 239).
Figure 239: Manage Database Schema
...
...
...
...
...
Figure 240: Create Database Schema
...
...
...
...
...
...
...
Figure 241: Select Schema
...
...
...
...
...
...
...
...
...
...
Save the mapping activity.
...
Info |
---|
To learn more about the Advanced Properties refer to the Changing Advanced Properties section. |
...
In a Database schema, you can set the Action attribute to delete the records from the target database table, if they are matching with the records of the source database table. If you define a primary key in the source and target schemas then the Data Mapper will match the source and target records on the basis of the primary key. If you do not define a primary key then the Data Mapper will match all of the records. You can enable this attribute in Data Mapper while mapping source and target schemas.
Steps to set action attribute to delete matching records
Load the source and target schemas in the Data Mapper. In target schema, there will be an Action attribute.
Create a constant 'delete' and map it to the Action attribute of the target schema.
Info |
---|
You need to use the keyword "delete" if your target database is ORACLE, IBM DB2, MS SQL Server or HSQLDB. You can also use the "cancel" keyword for MS SQL Server DBMS to achieve the same functionality. However please note that, you cannot use the "cancel" keyword for other RDBMS except for Ms SQL Server. |