how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / sudhir kumar
IN SQLSERVER 20005
SELECT COUNT(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'TABLENAME'
try in sql server 2000
| Is This Answer Correct ? | 29 Yes | 5 No |
Post New Answer View All Answers
Do you know clustered and non-clustered index?
Explain subquery and state its properties?
How many categories of data types used by sql server?
What is the difference between resultset and resultsetmetadata?
How to write a query with an inner join in ms sql server?
What is the tcp/ip port on which sql server runs?
How to create a dml trigger using create trigger statements?
What are binary string data types in ms sql server?
what happens on checkpoint? : Sql server database administration
What is the most common trace flags used with sql server?
Why use identity in sql server?
Do you know the capabilities of cursors?
How many types of functions are there in sql server?
Can you please explain the difference between function and stored procedure?
What are the ways available in sql server to execute sql statements?