1 --Sql Server 统计表行数--
2 SELECT  o.NAME,i.rowcnt
3 FROM sysindexes AS i 
4 INNER JOIN sysobjects AS o ON i.id = o.id 
5 WHERE i.indid < 2 and o.xtype = 'U'
6 ORDER BY o.NAME

 

posted on 2011-04-05 19:56  @清风......  阅读(560)  评论(0编辑  收藏  举报