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

Column Count

Status
Not open for further replies.

eloise

Programmer
Jan 31, 2002
20
0
0
US
Can you count the amount of columns in a table in SQL Server? If so, please tell me the syntax. Thank you in advance
 

select count(*)
from syscolumns
where object_name(id) = 'UrTable'


RT

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top