-- 計算資料庫中所有表的記錄條數
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
-- 計算資料庫中所有表的記錄條數
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