how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / jerry joseph
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name = 'TableName')
Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
What are the types of subquery?
What is optimistic concurrency?
what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration
What is nolock?
What are sql azure firewall rules?
How do clustered indexes store data?
What is the optimization being performed in oracle and SQL Server?
Explain transaction server distributed transaction?
Does transparent data encryption provide encryption when transmitting data across the network?
What is ssrs?
How can you ensure that the database and sql server based application perform well?
How do I partition a table in sql server?
What is difference between joins and subqueries?
What is the latest version of microsoft sql server?
How to update values in a table with update statements in ms sql server?