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
What is use of except clause?
What are the differences between decimal and float in ms sql server?
What is tcl in sql server?
What is the function of sql server agent windows service?
Why do we use non clustered index?
What are built in functions?
What are the advantages of using a stored procedure?
What are some examples of schemas?
What are sql dirty pages?
What do you do in data exploration
What is a join in sql?
What happens if time-only values are provided as date and time literals?
What is log in sql server?
How do I find the default sql server instance?
When I delete any data from a table, does the sql server reduce the size of that table?