Below script find out how many columns are there in a table
SELECT COUNT(1) 'No of Column(s)' FROM SYS.SYSCOLUMNS
WHERE ID = OBJECT_ID('TableName')
Happy Quering
Friday, March 19, 2010
How to Find Number of Columns in a Table
Posted by Kumar at 11:21 AM
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment