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 do you find the number of rows in a table?

Answer Posted / uma lakshman

Hokar, You are right. But using count(*) is not optimal.

I wud suggest going for sysindexes table to find the number
of rows in a particular table.

SELECT rows FROM sysindexes WHERE id = OBJECT_ID
('table_name')

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you create a logon trigger in sql server 2005 express edition?

1125


What are the differences between substr and charindex in sql server.

1190


What are different types of subquery?

1310


What are clustered and non-clustered index?

1052


Where do you find the default Index fill factor and how to change it?

1117


What are indexes in sql?

1355


What is self contained scalar sub query?

1018


Explain what are sparse columns?

1069


What is difference between join and natural join?

1061


What is meant by Active-Passive and Active-Active clustering setup?

1273


What are the security related catalog views? : sql server security

992


What are the restraints imposed on the table design by a merge replication?

1093


What does asynchronous call backs means?

1235


What is the recursive stored procedure in sql server?

1081


What is logshipping and its purpose?

1066