how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ram&saran
SELECT COUNT(*) FROM SYS.COLUMNS WHERE ID=(SELECT * FROM
SYS.OBJECT WHERE NAME='TABLENAME')
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the return type of executeupdate ()?
Explain about merge replications?
Does index slows down insert statements?
What does executeupdate return?
Can we add our custom code in ssis?
Why and when do stored procedure recompile?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
What is a partition key?
What are the 3 types of schema?
Explain the categories of stored procedure?
Explain different types of locks in sql server.
Write down the syntax and an example for create, rename and delete index?
How do I view views in sql server?
How to connect sql server management studio express to sql server 2005 express?
Where is localdb stored?