how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ajit kumar nayak
select count(*) from syscolumns sy,Sysobjects so
where
sy.id =so.id
and so.name = <table name>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to list all login names on the ms sql server?
What is a non-clustered index?
Data table as parameter in sql server?
what is a correlated sub-query? : Sql server database administration
What are the differences between decimal and float in ms sql server?
How can you fetch alternate records from a table?
What are the elements of dbms?
What is normalization according to you and explain its different levels?
What is 1nf 2nf and 3nf?
How to implement service broker?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
How do I trace a query in sql server?
What are the different types of cursor?
What is the difference between indexing and hashing?
List the advantages of using stored procedures?