how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / sujitha
SELECT DISTINCT SYS.NAME,COUNT(*) FROM SYSOBJECTS SYS
INNER JOIN SYSCOLUMNS SYSCOL ON SYSCOL.ID=SYS.ID
WHERE SYS.XTYPE='U' GROUP BY SYS.NAME
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
List some case manipulation functions in sql?
What is meant by dirty read?
Explain what are partitioned views and distributed partitioned views?
Mention what are the core components of ssrs?
How you can find out if an index is useful to the optimizer?
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
How to find index size for each index on table?
What are logical/boolean operations in ms sql server?
How do I run a trace in sql server?
Explain what is the difference between union and union all?
What is sql server schema compare? How we can compare two database schemas?
Does union all remove duplicates?
How does clustered and non clustered index work?
What are the methods used to protect against sql injection attack?
If user is owning any SQL Objects, can we drop that user