When you update a parent table in a database, CA ERwin Data Modeler may choose to implement the change by dropping and recreating the table. When CA ERwin Data Modeler drops and recreates a table, it must also drop and recreate all dependent foreign keys in all child tables to maintain database integrity.
CA ERwin Data Modeler automatically tracks and recreates all foreign key dependencies for a dropped table if you are comparing a model with an existing database. All affected child tables are also included in the Resolve Differences list.
CA ERwin Data Modeler can only drop and recreate the foreign key dependencies if it can find them in the database or the Resolve Differences list. If you are comparing a model to a SQL script file or CA ERwin Data Modeler model and a child table with a dependent foreign key is not included in the compare, CA ERwin Data Modeler cannot find and maintain the foreign key dependencies.
To properly maintain database integrity, if you are comparing a model with a SQL script or .erwin file, you should verify that all dependent tables are included in the Differences list.
If you modify a table that is referenced by stored procedures, triggers, and views, the referencing items may be invalidated or dropped (for DB2 z/OS, and some other databases) depending on the type of modification. CA ERwin Data Modeler does not recompile or recreate these items automatically.
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |