Asked by: Habib Katzman
asked in category: General Last Updated: 19th March, 2020

How do I view table relationships in SQL Server Management Studio?

2 Answers
  1. Open your SQL Server management studio and enter into your DB.
  2. Enter into Database Diagrams and search for diagrams.
  3. If there is no diagram, create a new diagram (right mouse click - New Database Diagram)
  4. Inside the Diagram use right mouse click, add all the relevant tables and see the relationships.

Click to see full answer.


Simply so, how can we find relationship between tables in SQL Server?

Using SQL Server Management Studio

  1. Open the Table Designer for the table containing the foreign key you want to view, right-click in the Table Designer, and choose Relationships from the shortcut menu.
  2. In the Foreign Key Relationships dialog box, select the relationship with properties you want to view.

One may also ask, what is a foreign key example? A foreign key is a column (or columns) that references a column (most often the primary key) of another table. For example, say we have two tables, a CUSTOMER table that includes all customer data, and an ORDERS table that includes all customer orders.

People also ask, how do I view table relationships in SQL Developer?

3 Answers. go to View > Data Modeler > Browser to open up the Browser view/tab. ( Browser view/tab*) right click on Relational Models and select New Relational Model which opens up a new window.

How do I find a foreign key?

if you want to go via SSMS on the object explorer window, right click on the object you want to drop, do view dependencies. Here is the best way to find out Foreign Key Relationship in all Database. In SQL Server Management Studio you can just right click the table in the object explorer and select "View Dependencies".

28 Related Question Answers Found

What is foreign key in DBMS?

How do I view tables in SQL?

How do I remove a foreign key?


How do I find a foreign key in SQL Server?

How do you create a relationship in a database diagram?

How do I view constraints in SQL Server Management Studio?


How do I edit rows in SQL Server Management Studio?

What are the SQL commands?

What is SQL Select statement?


What are the basics of SQL?

How do I get a list of all tables in SQL?