查看SqlServer中各表的记录条数

select   a.name as 表,max(b.rows) as 记录   from   sysobjects   a   ,sysindexes   b    
  where   a.id=b.id   and   a.xtype='u'  
group   by   a.name  
order by max(b.rows) desc

原文地址:https://www.cnblogs.com/wjhx/p/1741839.html