【Amadeus原创】SQL Server查询某数据库所有表名行数和空间占用率

`
select

object_name(id) tablename, 8reserved/1024 reserved, rtrim(8dpages)+'kb' used, 8(reserved-dpages)/1024 unused, 8dpages/1024-rows/1024*minlen/1024 free,

rows --,*

from sysindexes where indid=1

order by ROWS desc`

image

posted @ 2021-08-12 08:52  李济宏(Amadeus)  阅读(56)  评论(0编辑  收藏  举报