Viewing database diagrams in SQL Server is essential. In this article, I will walk you through all the approaches to do this.
How To View Database Diagram In SQL Server
Let us discuss all the approaches individually.
Approach-1: Using SQL Server Management Studio (SSMS)
To view database diagram in SQL server, follow the below steps.
1. Connect to your SQL Server instance using SQL Server Management Studio (SSMS).
2. Expand the Databases folder –> then Expand your specific database –> Now, expand the Database Diagrams folder as shown in the screenshot below.

You can double-click on the database diagram name to open it.
Check out How to Get Auto Increment ID in SQL Server
Approach-2: Using sysdiagrams
We can query the sysdiagrams for this purpose. We just need to execute the below query for this purpose.
USE Test;
GO
SELECT name AS DiagramName
FROM sysdiagrams;
After executing the above query, I got the expected output below.

Conclusion
Viewing database diagrams in SQL Server is an essential skill. You can either use the SQL server management studio (SSMS) design approach or you can also query the sysdiagrams as mentioned in this article.
You may also like following the articles below.
- How To Find Database Name In SQL Server
- How to Find Stored Procedure in SQL Server
- How to View SQL Server Error Logs

Rajkishore Sahoo is a Microsoft Azure consultant with more than 14 years of hands-on experience building cloud-native data solutions across Azure and AWS, focused on Azure SQL Database, Azure SQL Managed Instance, and the pipelines that connect them to production apps. Day to day, he provisions Azure SQL instances, configures firewalls and connection strings, tunes queries for cloud workloads, and wires databases into Azure Functions and Logic Apps. Read more