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 is a document index?
explain different types of backups avaialabe in sql server? : Sql server database administration
What are examples of triggers?
What is dbcc?
Explain what is the difference between a local and a global temporary table?
What is the difference between count () and rowcount ()?
How do I schedule a sql server profiler trace?
Explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
How can I check that whether automatic statistic update is enabled or not?
How network traffic be reduced by using the stored procedure?
How to change the system date and time from SQL Plus Terminal ?
Can I disable or restrict ssrs export formats (rendering formats)?
what are the different types of SSRS reports?
What is the advantage of sql server?
Explain sql delete command?