Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating an ERD in SQL Server

Similar presentations


Presentation on theme: "Creating an ERD in SQL Server"— Presentation transcript:

1 Creating an ERD in SQL Server
CreateERD 5/25/2018 Creating an ERD in SQL Server This presentation was prepared by Professor Steve Ross, with the advice of other MIS Faculty, for use in MIS Classes at Western Washington University. Please contact Dr. Ross for permission to use in other settings..

2 Creating an ERD Expand the Database entry (_WorkerBuildingDemo in this illustration) Right-click Database Diagrams and choose New Database Diagram If you see the following message, click “Yes”

3 Creating an ERD (cont’d)
Add the tables you wish to include in the diagram. As you add tables, they will appear on the window. Click close when all tables you want have been added.

4 Establishing Relationships
If relationships between tables have not been created already, you can use the graphical user interface (the ERD window) to create the relationship. To create a relationship using the ER Diagram… Arrange the two tables so they are in close proximity. Left-click on the “foreign key” field in the “many” table. Drag that field to the “one” table. Two windows will open. The default entries are often correct, If the default entries are not correct, you will need to correct them.

5 Show in Standard Table View
Right-click on each table name, selecting Standard view. The Standard view displays the Data Type and Allow Nulls properties. Note: These illustrations are “historical”. The actual attributes, data types and data sizes to be implemented this quarter may not match the design illustrated here.

6 Saving an ERD SQL Server Management Studio will attempt to arrange the tables and will add all relationship lines. You may drag things around for a clearer display. Save the diagram, renaming it, if necessary, according to the MIS 421 Naming Conventions. Ex.: “ERD_Lab_3”  ?


Download ppt "Creating an ERD in SQL Server"

Similar presentations


Ads by Google