how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ram&saran
SELECT COUNT(*) FROM SYS.COLUMNS WHERE ID=(SELECT * FROM
SYS.OBJECT WHERE NAME='TABLENAME')
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the approximate numeric data types?
Which Model uses the SET concept
What is an execution plan? When would you use it?
Issues related in upgrading SQL Server 2000 to 2005 / 2008
How many triggers are possible per table?
What are the different Authentication modes in SQL Server and how can you change authentication mode?
Can a synonym name of a table be used instead of a table name in a select statement?
how to take backup bcp out for a column in table in sql server?
Explain what are the basic functions for master, msdb, model, tempdb databases?
What is the exact numeric data type in sql?
How to get a list of all tables with "sys.tables" view in ms sql server?
how to use DTS package in 2000,2005,2008 in sql server
How can you find out how many rows returned in a cursor?
How to backup encryption key ?
Explain following error properties?