Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Diagram of Master DB

Author  Topic 

gmetaj
Starting Member

33 Posts

Posted - 2005-04-21 : 13:51:16
Is there a way to get a Diagram of the Master DB in sql. I tried to right click on EM however the diagram option is not available as is in any ther user created DB. Any insight is greatly appreciated.
Thanks

Gent

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-21 : 14:33:00
How about the wall charts that came in the box?

You do know how dangerous it is to mess with things in Master, don't you?

---------------------------
EmeraldCityDomains.com
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2005-04-21 : 15:13:48
master does not contain the tables and stored procedures that a database diagram needs, so you cannot do it.





CODO ERGO SUM
Go to Top of Page

mfemenel
Professor Frink

1421 Posts

Posted - 2005-04-21 : 15:15:30
You could also try Visio. It lets you reverse engineer into a diagram. I agree with Mark though, only do it to learn from it, not to change anything.The only thing move foolish would be rvolk washing his glasses in the dishwasher.

Mike
"oh, that monkey is going to pay"
Go to Top of Page

gmetaj
Starting Member

33 Posts

Posted - 2005-04-21 : 15:23:56
I'm only doing it for learning purposes. Not really interested in doing anything specific. I was looking Information_Schema.* schema views and got curious on the whole structure of the master db and see how info about other DB is stored. So are you all saying it's basically not possible in EM?

I'll give it a try to mfemenel's suggestions on VISIO.

Thanks again.

Gent


quote:
Originally posted by AjarnMark

How about the wall charts that came in the box?

You do know how dangerous it is to mess with things in Master, don't you?

---------------------------
EmeraldCityDomains.com

Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2005-04-21 : 16:21:17
Each database has it's own set of system tables that describe the user tables,views,procs etc in the database.
The master database has these tables too and some other tables+views that have server wide metadata (logins for example).
And msdb has the sqlserveragent + dts system tables.

So you could create the schema of sysobjects,syscolumns etc. in any (user) database.
the INFORMATION_SCHEMA views are interesting, and to get a diageram of those You could create physical tables of them;
-- create physical snapshot of information_schema.tables view for diagramming purposes
SELECT * INTO IS_TABLES FROM INFORMATION_SCHEMA.TABLES

Anyway the wall charts that Mark mentioned are really nice.
Is there anyplace on the net where You can download them ?

rockmoose
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-21 : 18:29:02
I had an electronic version of the wall charts that I got from another DBA. I'll see if I can find where they came from.

---------------------------
EmeraldCityDomains.com
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-04-21 : 18:47:12
Here you go:

http://weblogs.sqlteam.com/tarad/archive/2004/04/02/1198.aspx


Tara
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-04-21 : 18:47:53
OK, the file you want is systbl.chm. It comes on the Microsoft SQL Server 2000 Resource Kit CD. Or download it from Microsoft.


DAMN!
---------------------------
EmeraldCityDomains.com
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-04-21 : 19:07:56
quote:
The only thing move foolish would be rvolk washing his glasses in the dishwasher
What's so foolish about that? I wash my glasses, dishes, silverware, and all other eating utensils in the dishwasher. What the hell do you think it's supposed to be used for Femenella? Laptop keyboards???

I'm scared to think what sick and twisted things you use YOUR dishwasher for.

Sheesh. What a maroon.
Go to Top of Page

Ledell
SQL NASCAR Parsing Chick

107 Posts

Posted - 2005-04-21 : 21:13:26
quote:
Originally posted by robvolk

quote:
The only thing more foolish would be rvolk washing his glasses in the dishwasher
What the hell do you think it's supposed to be used for Femenella? Laptop keyboards???



Doesn't everyone use their dishwasher to clean up their laptop keyboards? Made mine shine!

*************************
Got some code from Rob. Can anyone help?
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2005-04-22 : 02:10:09
Way cool, thank You guys.
Googled some, but no luck.
This site is better than Google!

rockmoose
Go to Top of Page
   

- Advertisement -