统计SqlServer数据库表规模

统计数据库中所有表的数据规模:

1
2
3
4
5
select* from (select schema_name(t.schema_id) as [Schema], t.name as TableName,i.rows as [RowCount] 
from sys.tables as t, sysindexes as i
where t.object_id = i.id and i.indid <=1) a

order by a.[RowCount] DESC
感谢您的阅读,本文由 Gavinhome Blog 版权所有。如若转载,请注明出处:Gavinhome Blog(http://gavinhome.github.io/2019/02/28/统计SqlServer数据库表规模/
matplotlib可视化数据
搭建Hexo静态资源博客