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
Is it possible to create trigger on views?
What is an expensive query?
What is create command?
if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration
Issues related in upgrading SQL Server 2000 to 2005 / 2008
Your table has a large character field there are queries that use this field in their search clause what should you do?
What is sub query and its properties?
Do you know the policy based administration feature of sql server 2008?
What is the minimum recommended amount of ram for sql server 2012 enterprise?
What is the difference between stored procedure and functions?
What is transaction server isolation?
How to read data in a table with "select" statements?
What is data file in computer?
What are locks in sql?
What are the different types of columns types constraints in the sql server?