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

What is shrink log file?

843


Find columns used in stored procedure?

936


What are the types of sql server?

988


How to get the definition of a stored procedure back?

919


What are trace flags?

959


Explain sql server service broker?

925


What are translations and its use? : sql server analysis services, ssas

993


How exceptions can be handled in sql server programming?

951


what are constraints? Explain different types of constraints? : Sql server database administration

919


Write query to return all rows sql?

1004


Explain some stored procedure creating best practices or guidelines?

870


What is linked report?

119


What do you understand by integration services in sql server?

920


Explain the rules for designing files and file groups in sql server?

932


How to include text values in sql statements?

983