SELECT b.name AS tablename, a.rowcnt AS datacount FROM sysindexes a, sysobjects b
WHERE a.id = b.id AND a.indid < 2 AND objectproperty(b.id, ‘IsMSShipped‘) = 0 ORDER BY datacount DESC
SELECT b.name AS tablename, a.rowcnt AS datacount FROM sysindexes a, sysobjects b
WHERE a.id = b.id AND a.indid < 2 AND objectproperty(b.id, ‘IsMSShipped‘) = 0 ORDER BY datacount DESC