发布-日期: 2014年05月12日 (评论)
你可以使用此脚本获取以MB,GB和TB组合的所有数据库大小。
You can use this script to get ALL the database sizes combined in MB, GB, and TB.
select
'server' = @@servername
, 'total size in megabytes'= convert(decimal(10,2),(sum(size * 8.00) / 1024.00 ))
, 'total size in gigabytes' = convert(decimal(10,2),(sum(size * 8.00) / 1024.00 / 1024.00))
, 'total size in terabytes' = convert(decimal(10,2),(sum(size * 8.00) / 1024.00 / 1024.00 / 1024.00)) from
sys.master_files
Build Quality | Build History | ||||
---|---|---|---|---|---|
- 李聪明的数据库 Lee's Clever Data
- Mike的数据库宝典 Mikes Database Collection
- 李聪明的数据库 "Lee Songming"