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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.