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

Why use stored procedures in sql server?

968


What is the library index called?

1022


What is the order by used for?

979


What is function of ROLLUP ?

1053


Which is better statement or preparedstatement?

878


Do you know what is a trace frag? Where do we use it?

967


What is the difference between varchar and varchar types?

1018


Does union all remove duplicates?

1030


Explain different types of collation sensitivity?

943


What is the stuff and how does it differ from the replace function?

1041


Is the log file is a part of file group?

991


Difference between LEN() and DATALENGTH() in sql server ?

1069


How retrieve field names from the table in SQL through JAVA code?

1854


Does group by or order by come first?

913


What are diverse clauses that form a part of sql?

1035