统计SQLServer2005表记录数

select b.[name] 表名,max(a.rowcnt) 记录数  
 from sysindexes a   join sys.objects b on b.object_id=a.id   
where b.type='U'   group by b.[name]  
posted @ 2011-02-13 16:39  仲卿  阅读(239)  评论(0编辑  收藏  举报