how to find number of columns in a table in sql server 2000
and 2005 also
Answer Posted / bhaskar
select count(*) from syscolumns where id=(select id from
Sysobjects where [name]='Table_Name')
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security
When you use @@error and try-catch?
What do you mean by data manipulation language?
How to stop a loop early with break statements in ms sql server?
What are the dis_advantages of stored procedures, triggers, indexes?
What are the essential components of sql server service broker?
How to reaname table name without using sp_Rename in sql server..?
Does server sql treat char as a variable-length or fixed-length column?
if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
How to add additional conditions in SQL?
What are examples of triggers?
as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration
What is the difference between migration and upgradation in sql server?
What is built-in function?