I want to generate ER diagram of SQL database using Microsoft SQL Server Management Studio however, I dont know how to.
I found this technique online http://forums.asp.
- Go to Sql Server Management Studio >
- Object Explorer >
- Databases >
- Choose and expand your Database.
- Under your database right click on "Database Diagrams" and select "New Database Diagram".
- It will a open a new window. Choose tables to include in ER-Diagram (to select multiple tables press "ctrl" or "shift" button and select tables).
- Click add.
- Wait for it to complete. Done!!
You can save generated diagram for future use.
From Object Explorer in SQL Server Management Studio, find your database and expand the node (click on the + sign beside your database). The first item from that expanded tree is Database Diagrams. Right-click on that and you'll see various tasks including creating a new database diagram. If you've never created one before, it'll ask if you want to install the components for creating diagrams. Click yes then proceed.
As of Oct 2019, SQL Server Management Studio, they did not upgraded the SSMS to add create ER Diagram feature.
I would suggest try using DBWeaver from here :
https://dbeaver.io/download/
I am using Mac and Windows both and I was able to download the community edition and logged into my SQL server database and was able to create the ER diagram using the DB Weaver.