how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / vidit tyagi
SELECT Count(*)As Coloumns
FROM SysColumns
Where ID =
(SELECT ID FROM SysObjects Where Name = 'TableName')
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is mapping schema?
What is the difference between Clustered and Non-Clustered Index?
What are database states in ms sql server?
Explain the properties of the relational tables?
How to find table changes in sql server?
Difference Between ORDER BY Clause and GROUP BY Clause in SQL?
Find first and last day of current month in sql server
What is field with example?
What are the advantages of using cte?
How to find the source of a table in sql server?
What structure can you implement for the database to speed up table reads?
Why we use trigger in sql server with example?
How to defragment indexes with alter index ... Reorganize?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
What are the new security features added in sql server 2012? : sql server security