<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Stored Procedure &#8211; Clean Cache and Clean Buffer</title>
	<atom:link href="http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: dioscoredes</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-235355</link>
		<dc:creator><![CDATA[dioscoredes]]></dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-235355</guid>
		<description><![CDATA[Please excuse an Oracle DBA invading this terrain but like most sites today, we are mixed platform and I have to know my way round SQLServer as a beta skill set (and am a regular and grateful reader of Pinal Dave&#039;s very helpful website).

On SQLServer (SQLServer 2008 R2 enterprise), we have found that when a procedure is changed and recompiled, the old logic appears to run for some time (maybe 30 mins?) leaving the programmer doubting his sanity and tearing his hair out!!.  This doesnt happen on Oracle but as a DBA I somethimes have to flush the library cache for other reasons.  This lead me to research the same technique in SQLServer to force starting with a &quot;clean sheet&quot; when compiling SPs.  Executing DBCC FREEPROCCACHE was exactly what was needed to deal with this problem.  We will have to run this in a PROD environment when sp&#039;s are upgraded for reasons above - executing the old SP could be majorly inconvenient to disastrous.  On Oracle, a performace glitch and a few ropey stats may be expected until the cache refills.  There is a beneficial side effect of freeing trapped space in the proc cache when this is done - I guess its the same in SQLServer?.  In Oracle the proc is loaded to the cache when called but can be pinned so is permanently resident.  Pinned procs are reloaded by the RDBMS and app procs when called, after a cache flush.]]></description>
		<content:encoded><![CDATA[<p>Please excuse an Oracle DBA invading this terrain but like most sites today, we are mixed platform and I have to know my way round SQLServer as a beta skill set (and am a regular and grateful reader of Pinal Dave&#8217;s very helpful website).</p>
<p>On SQLServer (SQLServer 2008 R2 enterprise), we have found that when a procedure is changed and recompiled, the old logic appears to run for some time (maybe 30 mins?) leaving the programmer doubting his sanity and tearing his hair out!!.  This doesnt happen on Oracle but as a DBA I somethimes have to flush the library cache for other reasons.  This lead me to research the same technique in SQLServer to force starting with a &#8220;clean sheet&#8221; when compiling SPs.  Executing DBCC FREEPROCCACHE was exactly what was needed to deal with this problem.  We will have to run this in a PROD environment when sp&#8217;s are upgraded for reasons above &#8211; executing the old SP could be majorly inconvenient to disastrous.  On Oracle, a performace glitch and a few ropey stats may be expected until the cache refills.  There is a beneficial side effect of freeing trapped space in the proc cache when this is done &#8211; I guess its the same in SQLServer?.  In Oracle the proc is loaded to the cache when called but can be pinned so is permanently resident.  Pinned procs are reloaded by the RDBMS and app procs when called, after a cache flush.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sql Times</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-197155</link>
		<dc:creator><![CDATA[Sql Times]]></dc:creator>
		<pubDate>Wed, 16 Nov 2011 19:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-197155</guid>
		<description><![CDATA[Is this a database level change or instance level change?]]></description>
		<content:encoded><![CDATA[<p>Is this a database level change or instance level change?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Berber</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-143069</link>
		<dc:creator><![CDATA[Daniel Berber]]></dc:creator>
		<pubDate>Wed, 22 Jun 2011 23:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-143069</guid>
		<description><![CDATA[wincek, you can use DBCC FLUSHPROCINDB(db_id), this will remove all elements from the plan cache on this DB only and not the whole Instance. It&#039;s usually not recommended to run DBCC FREEPROCCACHE or DBCC FLUSHPROCINDB in a PRO Environment.]]></description>
		<content:encoded><![CDATA[<p>wincek, you can use DBCC FLUSHPROCINDB(db_id), this will remove all elements from the plan cache on this DB only and not the whole Instance. It&#8217;s usually not recommended to run DBCC FREEPROCCACHE or DBCC FLUSHPROCINDB in a PRO Environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wincek</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-142393</link>
		<dc:creator><![CDATA[wincek]]></dc:creator>
		<pubDate>Mon, 20 Jun 2011 07:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-142393</guid>
		<description><![CDATA[Is there any solution to clear data from cache for specific databse ?]]></description>
		<content:encoded><![CDATA[<p>Is there any solution to clear data from cache for specific databse ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rh_buddy</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-141572</link>
		<dc:creator><![CDATA[Rh_buddy]]></dc:creator>
		<pubDate>Fri, 17 Jun 2011 06:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-141572</guid>
		<description><![CDATA[If we are clearing procedure cache do we need to recompile all the procedures again or the sql server will automatically compile when a particular procedure runs ?]]></description>
		<content:encoded><![CDATA[<p>If we are clearing procedure cache do we need to recompile all the procedures again or the sql server will automatically compile when a particular procedure runs ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GrantAndre</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-132740</link>
		<dc:creator><![CDATA[GrantAndre]]></dc:creator>
		<pubDate>Tue, 03 May 2011 20:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-132740</guid>
		<description><![CDATA[SRI - just a thought, but have you checked on the licensing for that SQL server? Maybe you&#039;re getting slowed performance with 90-100 users due to load... Then getting the TCP provider error when user 101 attempts to connect if the SQL 2005 install is licensed by CAL rather than PROC. Not confident of this post, but a thought that might help...]]></description>
		<content:encoded><![CDATA[<p>SRI &#8211; just a thought, but have you checked on the licensing for that SQL server? Maybe you&#8217;re getting slowed performance with 90-100 users due to load&#8230; Then getting the TCP provider error when user 101 attempts to connect if the SQL 2005 install is licensed by CAL rather than PROC. Not confident of this post, but a thought that might help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whildher Lizarazo</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-123631</link>
		<dc:creator><![CDATA[Whildher Lizarazo]]></dc:creator>
		<pubDate>Thu, 17 Mar 2011 13:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-123631</guid>
		<description><![CDATA[SRI:

Can you resolve your problem with slow sql server ?]]></description>
		<content:encoded><![CDATA[<p>SRI:</p>
<p>Can you resolve your problem with slow sql server ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-103967</link>
		<dc:creator><![CDATA[Prashant]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 10:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-103967</guid>
		<description><![CDATA[Can somebody explain in detail the need of executing 
the below commands.
DBCC FREEPROCCACHE,DBCC DROPCLEANBUFFERS
I am still not very clear.

Thanks
Prashant]]></description>
		<content:encoded><![CDATA[<p>Can somebody explain in detail the need of executing<br />
the below commands.<br />
DBCC FREEPROCCACHE,DBCC DROPCLEANBUFFERS<br />
I am still not very clear.</p>
<p>Thanks<br />
Prashant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SRI</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-76850</link>
		<dc:creator><![CDATA[SRI]]></dc:creator>
		<pubDate>Sat, 19 Jun 2010 09:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-76850</guid>
		<description><![CDATA[hi

We developed system using .net frame work 2 with Sql server 2005.  one location using 10 to 20 user we are not facing any kind of problem.

ONE OF MY CLIENT USE 100+ users

WINDOWS 2008 SERVER - 64 BIT +  SQL SERVER 2005 64 BIt with 8 gb ram

but when 100+ user connecting to our server first 30 mins running system smooth and after that system getting slow, and   approx after one  hour client systems getting error :

TCP Provider, error: 0 - The specified network name is no longer available

again we have to restart the sql server or windows, then again its working fine..

please suggest me how to over come this and what could be the reason.

ONE MORE :

when 100 user connected to server, if any user using bulk transfers, memory goes up, after that it wont come down, just i want to know, there is any posibilities clearing the memory without disturbing my users work ?

Your immediate reply would be highly appreciate]]></description>
		<content:encoded><![CDATA[<p>hi</p>
<p>We developed system using .net frame work 2 with Sql server 2005.  one location using 10 to 20 user we are not facing any kind of problem.</p>
<p>ONE OF MY CLIENT USE 100+ users</p>
<p>WINDOWS 2008 SERVER &#8211; 64 BIT +  SQL SERVER 2005 64 BIt with 8 gb ram</p>
<p>but when 100+ user connecting to our server first 30 mins running system smooth and after that system getting slow, and   approx after one  hour client systems getting error :</p>
<p>TCP Provider, error: 0 &#8211; The specified network name is no longer available</p>
<p>again we have to restart the sql server or windows, then again its working fine..</p>
<p>please suggest me how to over come this and what could be the reason.</p>
<p>ONE MORE :</p>
<p>when 100 user connected to server, if any user using bulk transfers, memory goes up, after that it wont come down, just i want to know, there is any posibilities clearing the memory without disturbing my users work ?</p>
<p>Your immediate reply would be highly appreciate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-61069</link>
		<dc:creator><![CDATA[Rob]]></dc:creator>
		<pubDate>Fri, 12 Feb 2010 14:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-61069</guid>
		<description><![CDATA[Would you not be required to call the CHECKPOINT command before calling DROPCLEANBUFFERS?]]></description>
		<content:encoded><![CDATA[<p>Would you not be required to call the CHECKPOINT command before calling DROPCLEANBUFFERS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarabjeet Singh</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-60053</link>
		<dc:creator><![CDATA[Sarabjeet Singh]]></dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-60053</guid>
		<description><![CDATA[You are Great!!!!!!!!!!!Bhaji.I am your Great Great Fan...]]></description>
		<content:encoded><![CDATA[<p>You are Great!!!!!!!!!!!Bhaji.I am your Great Great Fan&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arindam</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-59130</link>
		<dc:creator><![CDATA[Arindam]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 10:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-59130</guid>
		<description><![CDATA[I have a stored procedure that calls another stored procedure in turn. The inner procedure returns an integer value using a SELECT SCOPE_IDENTITY().

The outer procedure also returns an integer value using SELECT SCOPE_IDENTITY().

Obviously the client is going to receive multiple result sets. Is there a way to &quot;clear&quot; the earlier resultsets and send only the last result set to the client ?]]></description>
		<content:encoded><![CDATA[<p>I have a stored procedure that calls another stored procedure in turn. The inner procedure returns an integer value using a SELECT SCOPE_IDENTITY().</p>
<p>The outer procedure also returns an integer value using SELECT SCOPE_IDENTITY().</p>
<p>Obviously the client is going to receive multiple result sets. Is there a way to &#8220;clear&#8221; the earlier resultsets and send only the last result set to the client ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ardy</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-57676</link>
		<dc:creator><![CDATA[ardy]]></dc:creator>
		<pubDate>Tue, 17 Nov 2009 20:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-57676</guid>
		<description><![CDATA[How do we use the command? in the SQL or query? in the php page itself? im confused!]]></description>
		<content:encoded><![CDATA[<p>How do we use the command? in the SQL or query? in the php page itself? im confused!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: techy</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-56394</link>
		<dc:creator><![CDATA[techy]]></dc:creator>
		<pubDate>Sun, 04 Oct 2009 03:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-56394</guid>
		<description><![CDATA[andre.

if you have tables which dont get queried, will it not be better if you do not have any index on those tables?]]></description>
		<content:encoded><![CDATA[<p>andre.</p>
<p>if you have tables which dont get queried, will it not be better if you do not have any index on those tables?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-46585</link>
		<dc:creator><![CDATA[Andre]]></dc:creator>
		<pubDate>Thu, 12 Feb 2009 03:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-46585</guid>
		<description><![CDATA[Good info! I wonder though if it is possible to specify for an index/table to not cache? or alternatively remove from cache a certain object? 
We have a log table which does not get queried at all, but it appears that primary key index of this table takes 56% of Buffer Cache.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Good info! I wonder though if it is possible to specify for an index/table to not cache? or alternatively remove from cache a certain object?<br />
We have a log table which does not get queried at all, but it appears that primary key index of this table takes 56% of Buffer Cache.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajendra dave</title>
		<link>http://blog.sqlauthority.com/2007/03/23/sql-server-stored-procedure-clean-cache-and-clean-buffer/#comment-564</link>
		<dc:creator><![CDATA[rajendra dave]]></dc:creator>
		<pubDate>Sun, 25 Mar 2007 09:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/03/23/stored-procedure-clean-cache-and-clean-buffer/#comment-564</guid>
		<description><![CDATA[extremely helpful in understanding and solving the problems. Thanks for your utmost skill in this field.]]></description>
		<content:encoded><![CDATA[<p>extremely helpful in understanding and solving the problems. Thanks for your utmost skill in this field.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

