<?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>dm_db_log_space_usage &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/dm_db_log_space_usage/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>Fri, 29 Sep 2017 06:08:38 +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>SQL Server 2012: Introduced dm_db_log_space_usage to find a Log size</title>
		<link>https://www.dbrnd.com/2016/01/sql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size/</link>
					<comments>https://www.dbrnd.com/2016/01/sql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 25 Jan 2016 17:26:40 +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[dbrnd]]></category>
		<category><![CDATA[dm_db_log_space_usage]]></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[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=1376</guid>

					<description><![CDATA[The SQL Server log and its maintenance are one of the important tasks for a Database Administrator. There are many optimized ways to configured SQL Server log, but then also we have to monitor the size of SQL Server logs. Before SQL Server 2012, we have different methods to find size of SQL Server Database [&#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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&amp;linkname=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" 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%2F2016%2F01%2Fsql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size%2F&#038;title=SQL%20Server%202012%3A%20Introduced%20dm_db_log_space_usage%20to%20find%20a%20Log%20size" data-a2a-url="https://www.dbrnd.com/2016/01/sql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size/" data-a2a-title="SQL Server 2012: Introduced dm_db_log_space_usage to find a Log size"></a></p><p>The SQL Server log and its maintenance are one of the important tasks for a Database Administrator.<br />
There are many optimized ways to configured SQL Server log, but then also we have to monitor the size of SQL Server logs.</p>
<blockquote><p>Before SQL Server 2012, we have different methods to find size of SQL Server Database Log like DBCC commands, but now SQL Server 2012 introduced new dynamic management view name is dm_db_log_space_usage and using this dm-view we can quickly calculate the size of the SQL Server Database log.</p></blockquote>
<p>Below is a script to find the size of the SQL Server Database log.</p>
<pre class="crayon-plain-tag">SELECT
	DB_NAME(database_id) AS DatabaseName
	,ROUND(CONVERT(FLOAT,total_log_size_in_bytes/1024)/1024,2) AS LogSizeInMB
	,ROUND(CONVERT(FLOAT,used_log_space_in_bytes/1024)/1024,2) AS LogUsedSizeInMB
	,ROUND(used_log_space_in_percent,2) AS LogUsedPercentInMB
FROM
sys.dm_db_log_space_usage</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/01/sql-server-2012-introduced-dm_db_log_space_usage-to-find-a-log-size/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
