Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get a list of fields contained in a table? 2

Status
Not open for further replies.

jgoodman00

Programmer
Joined
Jan 23, 2001
Messages
1,510
Is there a way of doing this, because I want to get a complete list of fields from each table, & then print them out... James Goodman
 

In SQL 7 and 2000 you can use the built-in INFORMATION_SCHEMA views.

Select * From INFORMATION_SCHEMA.Columns will provide a list of all columns in the current database. You can order the list in way you wish. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top