how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / surbhi
SELECT count(*) FROM INFORMATION_SCHEMA.COLUMNS where
table_name='tablename'
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What are the benefits of filtered indexes?
How to return the date part only from a sql server datetime datatype?
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
When you should use a low fill factor?
What is table constraint?
What is inner join in sql server joins?
What are the hotfixes and patches in sql server?
Mention the differences between local and global temporary tables.
Explain transaction server consistency?
what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration
query processing
Create a dts package to produce a text file using the ‘update statistics’ command for the tables in a database with obsolete statistics.
how many type of indexing in database?
Explain about analysis services?
explain what is raid and what are different types of raid configurations? : Sql server database administration