Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Table Documentor
I am sort of new to SQL. I use MS-Access most of the time so I do not know
if you can do this, but...

In MS-Access there was a tool called documenter that would list out the
table def's such as fields, sizes, data types, etc. Is there such a thing in
SQL?

I am using MS-SQL 2000 server.

Mike
m charney at dunlap hospital dot org



Report this thread to moderator Post Follow-up to this message
Old Post
Mike
10-27-05 02:25 PM


Re: Table Documentor
Mike wrote:

> I am sort of new to SQL. I use MS-Access most of the time so I do not know
> if you can do this, but...
>
> In MS-Access there was a tool called documenter that would list out the
> table def's such as fields, sizes, data types, etc. Is there such a thing 
in
> SQL?
>
> I am using MS-SQL 2000 server.
>
> Mike
> m charney at dunlap hospital dot org
>
>

Check out the various INFORMATION_SCHEMA views, i.e., select * from
INFORMATION_SCHEMA.TABLES


Report this thread to moderator Post Follow-up to this message
Old Post
corey lawson
10-27-05 02:25 PM


Re: Table Documentor
"corey lawson" <corey.lawson@ayeteatea.net> wrote in message
 news:11lfjta387n38ae
@corp.supernews.com...
> Mike wrote:
> 
>
> Check out the various INFORMATION_SCHEMA views, i.e., select * from
> INFORMATION_SCHEMA.TABLES
>

Using the following:

Select *
From INFORMATION_SCHEMA.TABLES

I only get the the table listings. I dont get the field names, sizes, etc.

How would I get those?

Mike



Report this thread to moderator Post Follow-up to this message
Old Post
Mike
10-27-05 02:25 PM


Re: Table Documentor
Mike (noway@forgetit.com)  writes:
> I am sort of new to SQL. I use MS-Access most of the time so I do not know
> if you can do this, but...
>
> In MS-Access there was a tool called documenter that would list out the
> table def's such as fields, sizes, data types, etc. Is there such a
> thing in SQL?
>
> I am using MS-SQL 2000 server.

In Enterprise Manager there are some graphical utilities, you can start
looking for Diagrams.

> Using the following:
>
> Select *
> From INFORMATION_SCHEMA.TABLES
>
> I only get the the table listings. I dont get the field names, sizes, etc.
>
> How would I get those?

These are in INFORMATION_SCHEMA.COLUMNS. The INFORMATION_SCHEMA views
are documented in Books Online.

Personally, I am more fond of using the system tables directly, as
INFORMATION_SCHEMA does not have all information, for instance,
there is no information about indexes.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp


Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
10-27-05 02:25 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:24 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006