<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>AUTO_CLOSE and performance issue in a .NET application</title><link>http://blogs.msdn.com/b/sqlsakthi/archive/2011/05/24/auto-close-and-performance-issue-in-a-net-application.aspx</link><description>One of the interesting scenario I worked recently. 
 .NET application which has multiple tabs showing employee details shows poor performance when run for the first time during anytime of the day but when we connect to SQL Server Management Studio and</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: AUTO_CLOSE and performance issue in a .NET application</title><link>http://blogs.msdn.com/b/sqlsakthi/archive/2011/05/24/auto-close-and-performance-issue-in-a-net-application.aspx#10302167</link><pubDate>Tue, 08 May 2012 10:46:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10302167</guid><dc:creator>Sakthivel Chidambaram</dc:creator><description>&lt;p&gt;Hi Papy,&lt;/p&gt;
&lt;p&gt;Thanks for your feedback and comments!&lt;/p&gt;
&lt;p&gt;//Sakthi&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10302167" width="1" height="1"&gt;</description></item><item><title>re: AUTO_CLOSE and performance issue in a .NET application</title><link>http://blogs.msdn.com/b/sqlsakthi/archive/2011/05/24/auto-close-and-performance-issue-in-a-net-application.aspx#10302166</link><pubDate>Tue, 08 May 2012 10:31:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10302166</guid><dc:creator>Papy Normand</dc:creator><description>&lt;p&gt;AUTO_CLOSE is set to OFF for every edition of SQL Server except for the Express ones for which the default value is ON&lt;/p&gt;
&lt;p&gt;You have not forgotten to recall the article of Mike Wachal with his explanation about the 300 ms.&lt;/p&gt;
&lt;p&gt;in &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/bb522682.aspx"&gt;msdn.microsoft.com/.../bb522682.aspx&lt;/a&gt; , i have discovered :&lt;/p&gt;
&lt;p&gt;&amp;quot;When the database is set to AUTOCLOSE = ON, an operation that initiates an automatic database shutdown clears the plan cache for the instance of SQL Server. Clearing the plan cache causes a recompilation of all subsequent execution plans and can cause a sudden, temporary decrease in query performance. In SQL Server 2005 Service Pack 2 and higher, for each cleared cachestore in the plan cache, the SQL Server error log contains the following informational message: &amp;quot;SQL Server has encountered %d occurrence(s) of cachestore flush for the &amp;#39;%s&amp;#39; cachestore (part of plan cache) due to some database maintenance or reconfigure operations&amp;quot;. This message is logged every five minutes as long as the cache is flushed within that time interval&amp;quot;&lt;/p&gt;
&lt;p&gt;In the same page , i have discovered &amp;quot;Database mirroring requires AUTO_CLOSE OFF&amp;quot;&lt;/p&gt;
&lt;p&gt;You have learnt me something useful : the possibility to use WITH NO_WAIT . Nice and precious.Thanks&lt;/p&gt;
&lt;p&gt;An excellent article written in a simple way ( so really easy to understand ). I regreat that it is not possible to give a 6 starts to it&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10302166" width="1" height="1"&gt;</description></item></channel></rss>