how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / sudhir kumar
IN SQLSERVER 20005
SELECT COUNT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'TABLENAME'
try in sql server 2000
| Is This Answer Correct ? | 29 Yes | 5 No |
Post New Answer View All Answers
How to create a store procedure with encryption?
What are the advantages of using stored procedures?
What is surrogate key? : sql server analysis services, ssas
How to use subqueries with the exists operators in ms sql server?
What is the main purpose of having conversation group?
what is database replicaion? : Sql server database administration
What do you mean by an execution plan?
Explain the benefits of user-defined functions?
List out the differences between the clustered index and non-clustered index in sql server?
What are the different types of indexes?
How to list all user defined functions in the current database?
Explain the use of containers in ssis and also their types?
What is use of except clause? How does it differ from not in clause?
How you can change the database name in SQL SERVER?
What is the usage of sign function?