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
What is a functions and types in sql server?
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
What is the maximum size of column in sql server?
How do I find information about the install locations for the various instances running on a computer?
Tell me about joins in database system and explain each in detail.
How would you go about developing a ssrs report?
How can a database be repaired?
Will sql server 2005 allow you to reduce the size of a column?
Explain what are the different index configurations a table can have?
What is the use of =,==,=== operators?
What is 2nf normalization form?
Hi all, can any one please tell me the difference between sql server 2008 and orace 9i
How will you add a dimension to cube? : sql server analysis services, ssas
can you instantiate a com object by using t-sql? : Sql server database administration
what is the difference between Delete and Truncate command in SQL