摘要: --统计某个库下所有表的数据量 select distinct o.name as 表名,i.rows as 记录数 from sysobjects o,sysindexes i where o.id=i.id and o.type='u' --and i.indid=0 order by i.rows desc --indid=0(没有聚集索引的表) 或者 indid=1(有聚集索引的表) 阅读全文
posted @ 2011-01-17 16:30 shenyaoxing 阅读(367) 评论(0) 推荐(0) 编辑