Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I produce database documentation?

Status
Not open for further replies.

mohaimen

Programmer
Dec 24, 2001
25
0
0
BD
Hi,

Can anyone help me in preparing a data dictionary (tables, columns, datatypes, keys etc of a database) using SQL Server 2000/2005. Database diagram does not provide info anout the foreign keys.

Best regards.

Mohaimen
 
You can use SQL Meta data found in the system tables
tables such as sysobjects, sysconstraints etc
use BOL and it will give you details on what these table hold. It not ideal to hit against these table repeatable, but you can take the data out into a datadictionary and then have regukar checks to update the data
 
take a look at the information_schema ansi ssytem views all the information is there

Here are 3 to get you started
select * from information_schema.columns
select * from information_schema.tables
select * from information_schema.table_constraints

Denis The SQL Menace
SQL blog:
Personal Blog:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top