Crystal Reports & SQL Reporting Services Training Consultants
Account Log in:
All ambitions are lawful except those which climb upwards on the miseries or credulities of mankind
Institute of IT Trainers - Freelance Trainer of the Year 2006 & 2009
Liverpool Business Connect Member
  Maximum Impact Solutions Limited - Reporting Solutions, Creating Answers
Reporting Solutions - Creating Answers, Crystal Reports, Dashboarding (Xcelsius) & SQL Reporting Services

The Maximum Impact Solutions Blog Feed ME!!!!


How Do I List All the Descriptions of Tables, Views and Fields of a SQL Database?

Recently while working with a client when they asked, "How does one list all the tables and views, with their fields and descriptions of a SQL database?"

To list all the tables and views fields and their corresponding descriptions, within an SQL database:

SELECT as [Table Name], as [Column Name], 
tableprop.value as [Table Description], colprop.value as [Col Description]


sysobjects INNER JOIN syscolumns ON =
left outer JOIN sysproperties tableprop ON = and tableprop.type = 3
left outer JOIN sysproperties.colprop ON = and colprop.type = 4
and colprop.smallid = syscolumns.colid

WHERE sysobjects.xtype in ('U','V')

Order by sysobjects.xtype, syscolumns.ColID,

If you have any questions, or need any assistance, please do not hesitate to Contact Us


Name *

Email Address *

Comment *

To prove you are human what is:

93 + 4 =