Girish Patil
Old Hand
Points: 344
More actions
September 25, 2007 at 12:12 pm
#175152
Comments posted to this topic are about the item Row count of all tables
Adi Lingam-470051
SSC-Addicted
Points: 407
October 5, 2007 at 10:01 am
#739616
The following query also gives the same results without creating a table.
select
TableName = object_name(id),
[RowCount] = max(rows)
from sysindexes
group by id
Ninja's_RGR'us
SSC Guru
Points: 294069
October 5, 2007 at 10:13 am
#739623
This works only if the stats are up to table. It's ok if an estimate is all you need. However if you need accuracy, you need to use count(*).
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply