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
How to set a database state to offline in ms sql server?
How do I view a procedure in sql server?
What is the maximum row of a size?
What is the purpose of data source?
how can you check the level of fragmentation on a table? : Sql server administration
How to trouble shoot if unable to connect SQL Server
What do you understand by SQL*Net?
Can we use trigger new in before insert?
Explain what are the restrictions while creating batches in sql server?
What is an indice?
List out different types of normalizations in sql server and explain each of them?
What is rs.exe utility?
What is data block and how to define data block size?
What is public role in sql server?
Can we do dml on views?