how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / kishore
select count(*) NoOfColumns from SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name = 'city')
In this querry may name is Tablename
| Is This Answer Correct ? | 58 Yes | 23 No |
Post New Answer View All Answers
Difference between drill down and drill through report.
How to get nth highest salary from employee table.
What is a database table?
What is 2nf normalization form?
How to find the login name linked to a given user name?
How do I find the default sql server instance?
do views contain data ?
Which tools are available to manage SQL Azure databases and servers?
How to use subqueries with the in operators in ms sql server?
why would you call update statistics? : Sql server database administration
What are the types of database recovery models?
How to verify a user name with sqlcmd tool?
How to find table changes in sql server?
How can sql server instances be hidden? : sql server security
What are the differences between ms sql server & oracle?