Peter's Gekko

Sponsors

The Lounge

Wicked Cool Jobs

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Exploring a database with SQL enterprise manager's Diagram wizard

A picture says more than a thousand words. I received an existing database to be used in an application. The database is pretty complex: it has over 40 tables and there is not that much documentation. The diagram wizard in the SQL enterprise manager proved very usefulll to generate some diagrams which displayed quite clearly what the database was about.

When you create a new diagram in SQL manager a wizard pops up; it asks for a table to add to the diagram. The best part is the “Add related tables automaticaly” checkbox.

When checking that the wizard adds all all tables having a primary or foreign key relation with the selected table and fits them in a quite nice layout.

Impresive, but somewhat intimidating. You can set the number of levels you want to add. Raising this to two:

Wow ! All of this without any manual manipulation. Very very usefull

Peter


Posted Mon, Jan 17 2005 7:10 AM by pvanooijen
Filed under:

[Advertisement]

Comments

Peter's Gekko wrote Adding images to a blog post
on Mon, Jan 17 2005 7:05 PM
Adding images to a blog post
ben wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Mon, Jan 17 2005 8:21 PM
I'm trying to include images in a blog post, but I'm not sure how to upload the images, can you tell me how you did it? thanks a lot!
Pris wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Thu, Feb 21 2008 8:37 PM

Hi, I have a question....

I have a database from an ERP and I want to create de Driagram for this database but when I select the tables from the wizard the tables apears separated, there have no relation in the diagram, but I know there are tables which has to be related  ... do you know why it happens?

My data has 480 tables but the diagram doestn show any ralation between them...

I'll apprecite your help!

pvanooijen wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Fri, Feb 22 2008 12:08 PM

The relations have to be defined in the DB in the form of foreign keys. In case these relations are only there in code, not as key defintions, the diagram will not show them. You kan use the diagram tool to create these keys by drag and drop.

pris wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Fri, Feb 22 2008 6:20 PM

thaks for your help :)

Suvitha wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Wed, Sep 17 2008 2:19 AM

hi kindly tell me the purpose or use behind the  'How many levels of related tables" selection ??

Thanks in advance

-Suvitha-

pvanooijen wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Wed, Sep 17 2008 1:54 PM

That's the number of levels deep tables related to related tables (via foreign keys) will show up in the diagram.

neil may wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Tue, Sep 23 2008 6:51 AM

I have used this info in the past to great affect but I now have a database with 310 tables and lots of relationships which is constantly fails to save, not only does it not save but it crashes sql 2000 enterprise manager. the error that comes up is as follows:

Runtime error

C:\Windows\System32\mmc.exe

Are there any limits on what can be saved within a diagram?

pvanooijen wrote re: Exploring a database with SQL enterprise manager's Diagram wizard
on Thu, Oct 2 2008 2:48 PM

Oh you poor man. .. Thatt's a horrfic db

Have you tried accessing the db from something like a 64 bit SQL 2005/8 manager ? AFAIK know that should be possible.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Devlicio.us