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
Does a full backup include transaction log?
What is a deadlock and what is a live lock?
How many types of schemas are there?
How to loop through the result set with @@fetch_status?
what are database files and filegroups? : Sql server database administration
How to divide query output into multiple groups with the group by clause in ms sql server?
What is database mirroring?
How to verify a user name with sqlcmd tool?
How to use the inserted and deleted pseudo tables?
What is page-level compression?
How to join two tables in a single query in ms sql server?
Does partitioning ssd reduce performance?
Which language is supported by sql server?
Mention the differences between local and global temporary tables.
What are the steps you can take to avoid “deadlocks”?