You can create a database diagram to visualize your database structure, add and configure objects, define relationships between them, and adjust the diagram layout.
To create a database diagram:
1. Open a diagram in one of the following ways:
Select File > New > Database Diagram.
Select Database > Database Diagram.
On the Start Page, select Database Design > New Database Diagram.
Tip
To open a diagram containing a specific object, in Database Explorer, right-click the object and select Send to > Database Diagram.
2. Add database objects to the diagram:
To add an existing object, drag the object from Database Explorer to the diagram.
To add a new object:
1. On the Database Diagram toolbar, select the object type you want to add. Alternatively, right-click the diagram and select New, then select the object type.

2. In the editor, specify the object properties.

Note
The properties you need to specify depend on the object type. For more information about editing objects, see:
For more information, see Add database objects to a diagram.
3. Add physical relationships (foreign key constraints) or virtual relationships between tables:
To add a physical relationship, on the Database Diagram toolbar, click
, then configure the properties.
To add a virtual relationship, on the Database Diagram toolbar, click
, then configure the properties.

For more information, see Work with relationships.
4. Arrange shapes on a diagram:
![]()
For more information, see Diagram shapes and layout.
5. Optional: Add other elements, such as notes, containers, images, or a stamp, to the diagram.

For more information, see Additional elements on a diagram.
6. Save the diagram in one of these ways:
On the toolbar, click
.
Right-click the diagram tab and save the diagram as a .dbd file.
