SELECT a.name, b.rowsFROM sysobjects AS a INNER JOINsysindexes AS b ON a.id = b.idWHERE (a.type = 'u') AND (b.indid IN (0, 1))ORDER BY b.rows DESC