Gossamer Forum
Home : General : Databases and SQL :

?: How do I print Table Properties

Quote Reply
?: How do I print Table Properties
I have been asked to print out the schema of our database tables. I wanted to know how to, using SQL Enterprise manager with MS SQL 2000, print out the column names, sizes, type, etc... for all the tables.

.:TUCK:.
.:TUCK:.
Quote Reply
Re: [tuck007] ?: How do I print Table Properties In reply to
Use:

sp_help tablename

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] ?: How do I print Table Properties In reply to
That was not exactly what I was hoping to do. Someone clued me into this method:

Code:
Select *
From Information_schema.columns
Where (table_name='tablename')
This gave me a lot of info in the query return. I have more than 70 tables in a database, how can I print all that information out about each tale quickly and easily. Presently, I'm trying to copy and paste into an Excel sheet and then move onto the next table. Any suggestions?
.:TUCK:.