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 the cartesian product of the table?
What are the new features in sql server 2016?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
What is the difference between mysql and mysqli?
What are sub reports?
How and why use sql server?
tell me what is blocking and how would you troubleshoot it? : Sql server database administration
how you can configure a running aggregate in SSRS?
What is NOT NULL Constraint in sql server 2012?
How to get @@error and @@rowcount at the same time?
What is user-defined functions? What are the types of user-defined functions that can be created?
What are the advantages of using stored procedures in sql server?
How do I setup a sql server database?
How does normalization work?
What is delete query?