Compartir a través de


How to: Reconcile 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.

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

Note

Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Customizing Development Settings in Visual Studio.

To update a database to match your diagram

  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.

To update your diagram to match a modified database

  1. Close your diagram without saving changes.

  2. Right-click the diagram in Server Explorer.

  3. From the shortcut menu click Refresh.

  4. Reopen the diagram.

See Also

Concepts

Multiuser Environments

Other Resources

Working with Database Diagrams