<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sysfiles &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/sysfiles/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 21 Nov 2017 06:01:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>Find Free and Occupied space by SQL Server Database</title>
		<link>https://www.dbrnd.com/2015/08/free-occupied-space-by-sql-server-database/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 05 Aug 2015 16:51:18 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[sysfiles]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=321</guid>

					<description><![CDATA[In this post, I am sharing a SQL Script to find free and occupied space for database storage files. You can also use SSMS GUI which provides the information on free and occupied space for individual Database. But I am always using the script for the DBA reports where we can customize as per our [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&amp;linkname=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F08%2Ffree-occupied-space-by-sql-server-database%2F&#038;title=Find%20Free%20and%20Occupied%20space%20by%20SQL%20Server%20Database" data-a2a-url="https://www.dbrnd.com/2015/08/free-occupied-space-by-sql-server-database/" data-a2a-title="Find Free and Occupied space by SQL Server Database"></a></p><p>In this post, I am sharing a SQL Script to find free and occupied space for database storage files.</p>
<p>You can also use SSMS GUI which provides the information on free and occupied space for individual Database.</p>
<p>But I am always using the script for the DBA reports where we can customize as per our requirements. </p>
<p><strong>Below is a script:</strong><br />
<pre class="crayon-plain-tag">SELECT
        Fileid
        ,CONVERT(DECIMAL(12,2),ROUND(Size/128.000,2)) AS FileSizeInMB
        ,CONVERT(DECIMAL(12,2),ROUND(FILEPROPERTY(Name,'SpaceUsed')/128.000,2)) AS UsedSpaceInMB
        ,CONVERT(DECIMAL(12,2),ROUND((Size-FILEPROPERTY(Name,'SpaceUsed'))/128.000,2)) AS FreeSpaceInMB
        ,Name AS DatabaseName
        ,FileName AS FileName 
FROM  dbo.sysfiles</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
