how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / jerry joseph
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name = 'TableName')
| Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
What are the functions in sql server?
What is clustered vs nonclustered index?
What is replication with database mirroring? : sql server database administration
What is the security principal at the database level that represents your session?
What is a Join and explain its types?
What is the difference between functions and scalar functions?
what is normalization? : Sql server database administration
How do I find the transaction log size in sql server?
How do I connect to sql server database?
What are cursors stored procedures and triggers?
What is difference between rownum and row_number?
How do you rebuild an identity column?
How do you debug a procedure in sql server?
How can sql server instances be hidden? : sql server security
how to create “alternate row colour”?