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)
 Pretty print tables?

Author  Topic 

groston
Yak Posting Veteran

61 Posts

Posted - 2004-03-03 : 16:46:12
I am looking for a (free) tool that will pretty print my SQL tables. I would like the column name, type, size and description listed in a manner that will allow easy insertion into a Word document. Heck, even a script that I can run from within Query Analyzer would be fine!

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-03-03 : 16:48:12
The INFORMATION_SCHEMA views have the data that you need:

SELECT TABLE_NAME, COLUMN_NAME, ...
FROM INFORMATION_SCHEMA.COLUMNS
ORDER BY ORDINAL_POSITION

The views are located in master database. You'll have to JOIN them together to get what you need though.

Tara
Go to Top of Page
   

- Advertisement -