<?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>DBCC FREEPROCCACHE &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/dbcc-freeproccache/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, 22 Sep 2017 22:09:17 +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: DBCC to Clean Cache and Clean Buffer for Stored Procedure</title>
		<link>https://www.dbrnd.com/2015/10/sql-server-dbcc-command-clean-cache-buffer-for-stored-procedure/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 16 Oct 2015 18:10:49 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[DBCC DROPCLEANBUFFERS]]></category>
		<category><![CDATA[DBCC FREEPROCCACHE]]></category>
		<category><![CDATA[dbrnd]]></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=869</guid>

					<description><![CDATA[Why do we require to clear the cache and buffer before executing a stored procedure in SQL Server? Sometimes it needs to clear buffer and cache for measuring the exact time duration between the executions. SQL Server provides two DBCC commands to clear the cache and buffer. DBCC FREEPROCCACHE : You can use above DBCC [&#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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&amp;linkname=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" 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%2F10%2Fsql-server-dbcc-command-clean-cache-buffer-for-stored-procedure%2F&#038;title=SQL%20Server%3A%20DBCC%20to%20Clean%20Cache%20and%20Clean%20Buffer%20for%20Stored%20Procedure" data-a2a-url="https://www.dbrnd.com/2015/10/sql-server-dbcc-command-clean-cache-buffer-for-stored-procedure/" data-a2a-title="SQL Server: DBCC to Clean Cache and Clean Buffer for Stored Procedure"></a></p><p>Why do we require to clear the cache and buffer before executing a stored procedure in SQL Server?<br />
Sometimes it needs to clear buffer and cache for measuring the exact time duration between the executions.<br />
SQL Server provides two DBCC commands to clear the cache and buffer.</p>
<p><strong>DBCC FREEPROCCACHE :</strong></p>
<blockquote><p>You can use above DBCC command to clear the cache of the Stored Procedure. When you use this command, it clears all old query plans and recompiles all your statements. </p>
<p>It removes all the elements from the plan cache and forces SQL Server for a recompile. It does not clear any execution statistics for the compiled stored procedure.</p>
<p>You should use this command carefully because every time it creates a new plan for the same query so it may decrease your query performance. But it is required during performance testing because you cannot measure query execution time without removing plan data from the cache.
</p></blockquote>
<p><strong>DBCC DROPCLEANBUFFERS :</strong></p>
<blockquote><p>Using the above DBCC command, you can remove all clean buffers from the buffer pool. During performance testing of your stored procedure, this DBCC command is handy to clear all buffer data from the buffer pool.</p>
<p>It also makes sure that all data are not coming from the buffer and fetching from the physical data pages so that you can measure the real performance between the executions.</p></blockquote>
<pre class="crayon-plain-tag">DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
