Calculating Disk Space in Use by All Databases within a Given MSSQL Instance

If you are trying to calculate total disk space in use by all databases within a given MSSQL instance, you can use the following script to determine this space.

It has been said that “Sys.Master_files is a server-wide view that lists every file in every DB. It’s available from SQL Server 2005 onward.”


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *