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

SQL Query to retrieve Field List

Status
Not open for further replies.

BuilderSpec

Programmer
Dec 24, 2003
383
GB
If I know a table name in an SQL database. ( Microsoft SQL Server ). Is there an specific SQL command to show me the fields in that table ?

Regards

BuilderSpec
 
You may get more accurate replies in the SQL server forum.
 
To get all columns in a known table, e.g.

Code:
select * 
  from information_schema.columns
 where table_name = 'T'
   and table_schema = 'SA'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top