Reconciling a Database Diagram with a Modified Database

Visual Database Tools

Visual Database Tools

Reconciling a Database Diagram with a Modified Database

You save your database diagram when you are ready to update the database to match your diagram. However, if other users have updated the database since you opened your diagram, their changes might affect your diagram and vice versa. In such cases, saving your diagram will automatically:

  • Recreate database objects that are referenced in your diagram but that another user deleted.

  • Preserve triggers that were added to a table; triggers that were deleted from a table are not preserved.

  • Delete an object you deleted in your diagram, even if  another user edited that object.

Saving your diagram will reconcile the database with your diagram by overwriting other users' changes so that the database will match your diagram.

To reconcile your diagram with a modified database

  1. Save your database diagram.
    If you have not previously saved your diagram, type a name for the diagram in the Save New Database Diagram dialog box and choose OK.

  2. The Save dialog box lists the tables that will be affected when you save your diagram. Choose Yes to continue.

  3. The Database Changes Detected dialog box lists the objects that were modified and will be changed to match your diagram. Choose Yes to save the diagram and accept the list of changes.

Note   If your diagram contains tables and columns that were deleted in the database, only their definitions are recreated in the database when you save your diagram. This process does not restore any data that existed in these objects before their deletion.

See Also

Multiuser Environments