SQL2008-显示表大小行数

select
object_name(id) tablename,
8*reserved/1024 reserved,
rtrim(8*dpages/1024)+'Mb' used,
8*(reserved-dpages)/1024 unused,
8*dpages/1024-rows/1024*minlen/1024 free
,rows
from sysindexes
order by reserved desc

posted on 2015-07-13 14:32  疯狂delphi  阅读(288)  评论(0编辑  收藏  举报

导航