how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / laxmi reddy
SELECT COUNT(COLUMN_NAME) FROM ALL_TAB_COLS WHERE
TABLE_NAME=<'TABLE_NAME'>;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you check the level of fragmentation on a table?
Determine when an index is appropriate?
What is the difference between DATETIME2 and DATETIME?
How will you go about resolving deadlocks?
Differentiate between sql temp table vs table variable?
What is database isolation in sql server? : sql server database administration
Explain the use of keyword with encryption. Create a store procedure with encryption?
How can we migrate from SQL server to SQL Azure?
What is dml command?
How to use union to merge outputs from two queries together in ms sql server?
What is the tcp/ip port on which sql server runs?
Distinguish between commit and rollback?
How to generate create procedure script on an existing stored procedure?
How to drop an existing schema in ms sql server?
How to bind a view to the schema of the underlying tables?