Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find number of columns in a table in sql server 2000
and 2005 also

Answer Posted / kishore

select count(*) NoOfColumns from SYSCOLUMNS
WHERE id= (Select id from SYSOBJECTS where name = 'city')

In this querry may name is Tablename

Is This Answer Correct ?    58 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How sql server executes a statement with nested subqueries?

979


Where are sql server user names and passwords stored in sql server?

1037


What are the differences between DDL, DML and DCL in SQL?

1191


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

995


What are the source of constraints?

871


How ssrs maintain security?

1031


What do you mean by cardinality?

867


What is clr ddl trigger?

924


What do you mean by an execution plan? Why is it used?

966


what are acid properties? : Sql server database administration

945


What is the beast way to write CTE in SQL Server ?

996


what is a self join? : Sql server database administration

981


What is the correct order of the logical query processing phases?

893


Why main is user defined function?

965


When is update_statistics command used?

1014