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

Difference between drill down and drill through report.

943


How to get nth highest salary from employee table.

1156


What is a database table?

960


What is 2nf normalization form?

1122


How to find the login name linked to a given user name?

1002


How do I find the default sql server instance?

931


do views contain data ?

950


Which tools are available to manage SQL Azure databases and servers?

115


How to use subqueries with the in operators in ms sql server?

1062


why would you call update statistics? : Sql server database administration

1073


What are the types of database recovery models?

1108


How to verify a user name with sqlcmd tool?

1067


How to find table changes in sql server?

1105


How can sql server instances be hidden? : sql server security

1129


What are the differences between ms sql server & oracle?

1047