|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, January 02, 2009 2:41 PM
Points: 110,
Visits: 20
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Thursday, July 12, 2012 2:43 PM
Points: 399,
Visits: 67
|
|
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
|
|
|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Yesterday @ 5:19 AM
Points: 21,357,
Visits: 9,530
|
|
| 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(*).
|
|
|
|