select b.[name] 表名,max(a.rowcnt) 记录数from sysindexes ajoin sys.objects b on b.object_id=a.idwhere b.type='U'group by b.[name]