how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / kumar.t
Select Count(Column_Name) As NoOfColumns From
Information_Schema.Columns Where table_Name='Company'
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
What is SQL Azure Firewall?
How to get a list of all tables with "sys.tables" view in ms sql server?
what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration
Explain what is row_number function?
How do indexes help, types?
What is key set driven?
What is a functions and types in sql server?
What is collation sensitivity? Explain different types.
what are different types of backups available in sql server? : Sql server database administration
What is a file group?
How to rebuild master databse?
How to select an exiting database using mssql_select_db()?
Can I disable or restrict ssrs export formats (rendering formats)?
Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture
What is the usage of sign function?