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
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