select sd.name,
round(sum(db.size) * 8 / 1024, 0) size_mb,(sum(db.size) * 8 / 1024) / 1024 as size_gb
from sys.master_files db inner join sys.databases sd on sd.database_id = db.database_id
group by sd.name
order by sd.name
round(sum(db.size) * 8 / 1024, 0) size_mb,(sum(db.size) * 8 / 1024) / 1024 as size_gb
from sys.master_files db inner join sys.databases sd on sd.database_id = db.database_id
group by sd.name
order by sd.name
0 Comments
if you have any doubts , please let me know