Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate Entity Relationship (ER) Diagram of a database using Microsoft SQL Server Management Studio?

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.net/t/1790223.aspx?Making+ER+Diagram+from+SQL+Server+2008+Database

However, I am not able to see "Database Node" or "Database Diagrams" nodes as mentioned in the 1st and 2nd steps.

Hence, please let me know how can I generate ER diagram from an existing DB.

UPDATE:

From the comments below, I realize that I was right in my understanding that Database node means the node with my database name. But then my problem is I am not able to find the "Database Diagrams" node under my Database name. What should I do now so that I can see it.

PS: Its not a local database.

like image 397
Temp O'rary Avatar asked Sep 03 '15 14:09

Temp O'rary


People also ask

Can we generate ER diagram from SQL Server?

Create ER diagram in SSMS Open SQL Server Management Studio (SSMS). In the Object Explorer on the left, expand your database. Right-click on Database Diagrams, and then select New Database Diagram.

Can we generate ER diagram from database?

Generate an ER Diagram from your existing SQL database online, automatically. Trevor.io is a BI tool used by startups and companies around the world. It's great for exploring and visualizing data, and answering ad hoc questions, day-to-day.


1 Answers

  1. Go to Sql Server Management Studio >
  2. Object Explorer >
  3. Databases >
  4. Choose and expand your Database.
  5. Under your database right click on "Database Diagrams" and select "New Database Diagram".
  6. 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).
  7. Click add.
  8. Wait for it to complete. Done!

You can save generated diagram for future use.

screenshot

like image 197
DhaRmvEEr siNgh Avatar answered Sep 23 '22 03:09

DhaRmvEEr siNgh