Data Mover does not automatically compare DDL tables when copying the entire database. You can enable DDL comparison for database tables being completely or partially copied or renamed, while excluding DDL comparison for certain tables.
- Add the compare_ddl element.
- Specify true as the element value at the database level.
- Add the selection="included" attribute to a table element and specify the table name.
- For the table to be excluded, add the compare_ddl element and specify false as the element value.
In the following example, compare DDL is performed on tables in the MyDB database. However, compare DDL is not performed for the MyDB.PPIOrders table.
<database selection="all"> <name>MyDB</name> <compare_ddl>true</compare_ddl> <table selection="included"> <name>PPIOrders</name> <compare_ddl>false</compare_ddl> </table> </database>
In the following example, compare DDL is performed on tables in the MyDB database and the MyDB.PPIOrders table is renamed to MyDB.PPIOrders_NewName on the target. Compare DDL is not performed for the MyDB.PPIOrders_NewName table.
<database selection="all"> <name>MyDB</name> <compare_ddl>true</compare_ddl> <table selection="included"> <name>PPIOrders</name> <target_name>PPIOrders_NewName</target_name> <compare_ddl>false</compare_ddl> </table> </database>