how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / ram&saran
SELECT COUNT(*) FROM SYS.COLUMNS WHERE ID=(SELECT * FROM
SYS.OBJECT WHERE NAME='TABLENAME')
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Name few endpoints exposed by ssrs 2012?
What is a rownum?
What Is Rdbms?
what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Can we linked SharePoint to a SQL database?
How to optimize stored procedure optimization?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
Explain the advantages of merge replication?
What is sql server locking?
What is the primary use of the model database?
Explain what is sql server english query?
How to grant a permission in ms sql server using "grant execute" statements?
Which tcp/ip port does the sql server run on? How can it be changed?
What is the current pricing model of SQL Azure?
How do I start sql server agent automatically?