Solved

Sql server 2005 for Diagram for making ER Diagram

Posted on 2008-06-20
3
9,457 Views
Last Modified: 2012-05-05
Hi experts i want to make ER Diagram of a database how can i make it , i can see diagram if
i expand database in management studio.what does diagram do can you explain me .
Thanks
0
Comment
Question by:Sandeepiii
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Accepted Solution

by:
MikeWalsh earned 250 total points
ID: 21830166
So in SQL Server 2005 the Diagram tool does just what you want.. It creates a diagram of your database. You would right click and select New Diagram. There are various options to use. But the basic idea is add the tables to the diagram and you can see the relationships. Beware changes to database objects in a diagram can be changes to the real object depending on what you are doing.

It sounds like you have an existing database and this tool is good for that purpose. I generally don't use this tool to make a diagram for a new database, I use ERwin and sometimes Visio. Both of which can reverse engineer your database.

But the benefit of diagrams in SQL Server 2005 (2000 had them, a bit improved in 2005) is it is right at your fingertips covered in your license already.

0
 
LVL 18

Expert Comment

by:Richard Lee
ID: 21830182
The 'Database Diagrams' section within a Database allows you to create Physical Database Diagrams (PDD) which is almost the same thing as and Entity Relationship Diagram (ERD). ERD have some concepts which have to be altered in design when applying it to a database. i.e many to many relationships.

If you create a diagram you can now drag and drop tables of the designer surface where you can establish relationships by simply dragging a primary key over to its foreign key counterpart. There are many more features which can be modified but this is a basic start.

You can also create new tables on the designer and these table will reflect in your Tables list within the Database. Here are some more tips:

1. To set the primary key for a table, right click on the field and then select primary key from the list.
2. To see more than the column names for a table, right click on the table, select table view and then choose the view you wish.
3. To see additional columns not shown in the default views, select custom view. You can modify the custom view and add more columns if needed. This option is present when you attempt to change the view.
0
 

Author Closing Comment

by:Sandeepiii
ID: 31469100
Thanks for the answer you are rt i can use erwin or visio but the problem is rt now can't
install as it would require a service request with proper justification though i can give but lots of waste of time as our company acts little slow so i will use diagram .
Thanks once again.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question