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
What is shrink log file?
What are the advantages of using stored procedures?
whats the maximum size of view state??
Can the query output be sorted by multiple columns in ms sql server?
How will you monitor replication latency in transactional replication? : sql server replication
Explain data warehousing in sql server?
What are binary string data types in ms sql server?
How to write a query with a left outer join in ms sql server?
How retrieve field names from the table in SQL through JAVA code?
OPTIMIZATION OF SP,CURSOR,TRIGGERS
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
what are triggers? : Sql server database administration
explain extended properties
Explain different types of index?
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio