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 ssrs maintain security?
How to display a past time in days, hours and minutes?
What are the basic functions for master, msdb, model, tempdb and resource databases?
What are logical/boolean operations in ms sql server?
how to trace the traffic hitting a sql server? : Sql server database administration
What is query and its types?
Mention the different types of triggers?
Can we write trigger for view?
Describe different Processing Modes offered by SSRS?
What is the command used to check locks in microsoft sql server?
List the ways in which dynamic sql can be executed?
What is pivot and unpivot?
What is a raid and what are different types of raid configurations?
What is dbcc?
How to create a Master database in SQL server ?