<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Disk Space on SQL Server Scripts</title><link>https://www.sqlserver70.com/tags/disk-space/</link><description>Recent content in Disk Space on SQL Server Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>SQLServer70.com</copyright><lastBuildDate>Sun, 17 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sqlserver70.com/tags/disk-space/index.xml" rel="self" type="application/rss+xml"/><item><title>SQL Server Database File Space Usage Report</title><link>https://www.sqlserver70.com/post/sql-server-database-file-space-usage-report/</link><pubDate>Sun, 17 May 2026 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/sql-server-database-file-space-usage-report/</guid><description>
&lt;p&gt;Running out of space inside a data or log file halts SQL Server transactions immediately — and discovering that a volume is full only after an outage is too late. This script queries &lt;code&gt;sys.master_files&lt;/code&gt; and &lt;code&gt;sys.dm_os_volume_stats&lt;/code&gt; across every online database on the instance to report each file's allocated size, space actually written, free space inside the file, percent used, autogrowth configuration, and the amount of free space remaining on the underlying disk volume.&lt;/p&gt;</description></item></channel></rss>