how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / amit
SELECT count(*) NoOfColumns FROM SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name
= 'TableName')
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the difference between set and select?
How do I connect to sql server database?
How to count groups returned with the group by clause in ms sql server?
in the physical file layout, where should the transaction log be stored in relation to the data file?
What is a database in ms sql server?
What are the different types of indexes?
What is the difference between mysql and mysqli?
What is the purpose of forms?
What are the different types of normalization?
can a table be moved to different filegroup? : Sql server administration
Can an entity have two primary keys?
How do I start sql server agent automatically?
Describe and explain about SQL native client?
What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio
What is the full form of ddl?