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

Define outer join in sql server joins?

890


How to defragment indexes with alter index ... Reorganize?

1024


What's the information that can be stored inside a bit column?

937


Give an example of SQL injection attack ?

929


What is subquery in sql?

987


Does the unique constraint create an index?

988


Explain the difference between delete,drop and truncate in SQL Server?

1019


What is unique key constraint?

988


What is optimization and its types?

912


How to name query output columns in ms sql server?

916


How to filter out duplications in the returning rows in ms sql server?

1067


How to get the query of a table in sql server?

849


What is difference between foreign key and unique key?

962


Explain about extended stored procedure?

863


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

1069