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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get column names of a table? 1

Status
Not open for further replies.

scc

Programmer
Apr 30, 2001
218
US
I'm using SQL Server 7

Is there a query I can use to just retrieve the column names of a table in Query Analyzer?

TIA
 
SELECT column_name
FROM information_schema.columns
WHERE table_name = 'yourtablename'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top