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 normalization process?
How extra digits are handled with numeric data type literals?
What is the difference between clustered and a non-clustered index?
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
Explain what is meant by replication of database?
What are the elements of dbms?
What can be used instead of trigger?
Does union all remove duplicates?
How to create an multi-statement table-valued function?
Can you edit the .rdl code associated with a linked report?
Difference between uniqe index and uniqe constraint?
what authentication modes does sql server support? : Sql server database administration
What do you understand by replication in sql server?
What are the different types of sub-queries?
What is a non-clustered index?