how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / amit
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name
= 'TableName')
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What do you mean by a dependent functionality in a build?
Define constraints and give an example of their use?
What is sql azure database?
How do database indexes work?
What is the difference between inner join and equi join?
Explain following error properties?
Where to find ntwdblib.dll version 2000.80.194.0?
Explain syntax for dropping triggers?
How to end a stored procedure properly in ms sql server?
How exceptions can be handled in sql server programming?
Which table keeps the locking information?
What do you understand by the analysis services in sql server?
Can you insert NULL in unique column?
How can a user-defined datatype be created?
What is the default order of an order by clause?