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
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
How to use clusters?
What are the different subsets of sql?
What is self contained multi valued query?
What the difference between UNION and UNIONALL?
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
What is sparse columns of sql server 2008?
How to create an multi-statement table-valued function?
What is resource governor in sql server?
Explain what is it unwise to create wide clustered index keys?
How to execute a sql statement using odbc_exec()?
How to list all login names on the ms sql server?
What is deploy, process and build? : sql server analysis services, ssas
What is policy based management (pbm)? : sql server database administration
What is normalization of database?