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!

Viewing Table Structure

Status
Not open for further replies.

gust1480

Programmer
Mar 19, 2002
148
PH
How can I view a certain table structure using sql scripts? Thanks much!
 
Code:
SELECT * FROM MyDataBase.Information_Schema.columns WHERE Table_Name = 'MYTABLE_NAME'

Borislav Borissov
 
For viewing only:
Code:
sp_help 'MYTABLE_NAME'

------
[small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small]
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top