- Start Enterprise Manager
- Click + to expand SQL Server Group
- Click + to expand your server group
- Click + to expand your database
- Right click Diagrams, if none exits, otherwise double click diagram on right side of screen,
Right click in diagram, chose Add Existing table and skip to step 8
- Click New Database Diagrams...
- Click Next>
- Click tables to be related
- Click Add button
- Repeat steps 8 - 9, until all tables to related have been chosen
- Click Next>
- Click Finish
- Click OK
- Click on the box in front of the foreign key column and drag it to the column in the related table
(the row of foreign key will become highlighted)
- The Properties dialog box for the table will appear
- Enter relationship name in the Selected relationship box
Relationship name should be primary table name _ (undersorce) foreign table name
ex. primary table name: TCO88_WINNT_Logins
foreign table name: TCO88_Server
relationship name: TCO88_WINNT_Logins_TCO88_Server
- Verify the correct columns have been chosen for the primary and foreign key
- Click Close button
- Click the save button (small diskette)