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
How to write a query with a left outer join in ms sql server?
Explain the collation?
List the various tools available for performance tuning?
What is data source view or dsv? : sql server analysis services, ssas
How do we synchronize On-Premise SQL server with SQL Azure?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
How can delete duplicate records in cte in sql server?
What do mean by xml datatype?
What is the difference between NOROW and LOCKROW?
What sql server means?
What is a performance monitor?
What are page splits? : SQL Server Architecture
What is triggers and its types?
How to create a dynamic cursor with the dynamic option?
What is the tcp/ip port on which sql server runs?