<?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; 2008 &#8211; Optimize for Ad hoc Workloads &#8211; Advance Performance Optimization</title>
	<atom:link href="http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Klonopin</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-474065</link>
		<dc:creator><![CDATA[Klonopin]]></dc:creator>
		<pubDate>Mon, 13 May 2013 00:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-474065</guid>
		<description><![CDATA[Your own write-up offers confirmed beneficial to myself.

It’s quite helpful and you really are naturally very well-informed in this field.

You get popped our sight in order to numerous views on 
this particular matter using intriquing, notable and solid content.]]></description>
		<content:encoded><![CDATA[<p>Your own write-up offers confirmed beneficial to myself.</p>
<p>It’s quite helpful and you really are naturally very well-informed in this field.</p>
<p>You get popped our sight in order to numerous views on<br />
this particular matter using intriquing, notable and solid content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #021 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-442561</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #021 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 23 Mar 2013 01:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-442561</guid>
		<description><![CDATA[[...] Optimize for Ad hoc Workloads – Advance Performance Optimization Every batch (T-SQL, SP etc.) when ran creates an execution plan which is stored in system for re-use. Due to this reason a large number of query plans are stored in the system. However, there are plenty of plans which are only used once and have never re-used again. One time ran a batch plans wastes memory and resources. SQL Server 2008 has feature of optimizing ad hoc workloads. Before we move to it, let us understand the behavior of SQL Server without optimizing ad his workload. Let us understand the same. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Optimize for Ad hoc Workloads – Advance Performance Optimization Every batch (T-SQL, SP etc.) when ran creates an execution plan which is stored in system for re-use. Due to this reason a large number of query plans are stored in the system. However, there are plenty of plans which are only used once and have never re-used again. One time ran a batch plans wastes memory and resources. SQL Server 2008 has feature of optimizing ad hoc workloads. Before we move to it, let us understand the behavior of SQL Server without optimizing ad his workload. Let us understand the same. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-429726</link>
		<dc:creator><![CDATA[Rajesh]]></dc:creator>
		<pubDate>Fri, 01 Mar 2013 13:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-429726</guid>
		<description><![CDATA[Hi Penal,
There isn&#039;t any impact of settings as defined the blog.
It still leaves execution plan in every scenario.

No record is wrong because because of a very minor mistake
TEXT LIKE &#039;SELECT * FROM HumanResources.Shift%&#039;

TEXT LIKE &#039;%SELECT * FROM HumanResources.Shift%&#039;

I need to know one thing is it possible to reuse any Execution Plan intentionally for any query again?]]></description>
		<content:encoded><![CDATA[<p>Hi Penal,<br />
There isn&#8217;t any impact of settings as defined the blog.<br />
It still leaves execution plan in every scenario.</p>
<p>No record is wrong because because of a very minor mistake<br />
TEXT LIKE &#8216;SELECT * FROM HumanResources.Shift%&#8217;</p>
<p>TEXT LIKE &#8216;%SELECT * FROM HumanResources.Shift%&#8217;</p>
<p>I need to know one thing is it possible to reuse any Execution Plan intentionally for any query again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sendhilraja</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-393038</link>
		<dc:creator><![CDATA[Sendhilraja]]></dc:creator>
		<pubDate>Fri, 14 Dec 2012 08:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-393038</guid>
		<description><![CDATA[Greate Tips]]></description>
		<content:encoded><![CDATA[<p>Greate Tips</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Israr Haq</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-236150</link>
		<dc:creator><![CDATA[Israr Haq]]></dc:creator>
		<pubDate>Thu, 12 Jan 2012 18:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-236150</guid>
		<description><![CDATA[Lakshmi,

Its a bit late when I am stumbling on this blog. I hope that issue is resolved by now. Your memory settings look good. HOwever, the error is not very descriptive. Looks like a kernal memory type pressure.Each solution has to evaluated indivifually as one solution does not fit all similiar issues.]]></description>
		<content:encoded><![CDATA[<p>Lakshmi,</p>
<p>Its a bit late when I am stumbling on this blog. I hope that issue is resolved by now. Your memory settings look good. HOwever, the error is not very descriptive. Looks like a kernal memory type pressure.Each solution has to evaluated indivifually as one solution does not fit all similiar issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rama Lakshmi</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-212132</link>
		<dc:creator><![CDATA[Rama Lakshmi]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 15:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-212132</guid>
		<description><![CDATA[I am getting the following error in SQL Server 2008 R2.

“pctfreemem is [ 2 ] threshold is 5 [ MEM - pctfreemem ]”

I have enabled the ‘optimize for ad hoc workloads’,1

though i am getting the memory issue. Installed RAM is 16GB and SQL Server Max server memory setting is 10240. 

Please guide me to resolve this problem. Server is in production state.

This is bit urgent.  Please guide me.]]></description>
		<content:encoded><![CDATA[<p>I am getting the following error in SQL Server 2008 R2.</p>
<p>“pctfreemem is [ 2 ] threshold is 5 [ MEM - pctfreemem ]”</p>
<p>I have enabled the ‘optimize for ad hoc workloads’,1</p>
<p>though i am getting the memory issue. Installed RAM is 16GB and SQL Server Max server memory setting is 10240. </p>
<p>Please guide me to resolve this problem. Server is in production state.</p>
<p>This is bit urgent.  Please guide me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rama Lakshmi</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-207328</link>
		<dc:creator><![CDATA[Rama Lakshmi]]></dc:creator>
		<pubDate>Tue, 29 Nov 2011 18:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-207328</guid>
		<description><![CDATA[I am getting the following error in SQL Server 2008 R2.

&quot;pctfreemem is [ 2 ] threshold is 5 [ MEM - pctfreemem ]&quot;

I have enabled the  ‘optimize for ad hoc workloads’,1

though i am getting the memory issue.  Installed RAM is 16GB and  SQL Server Max server memory setting is 10240. 

Please guide me to resolve this problem. Server is in production state.]]></description>
		<content:encoded><![CDATA[<p>I am getting the following error in SQL Server 2008 R2.</p>
<p>&#8220;pctfreemem is [ 2 ] threshold is 5 [ MEM - pctfreemem ]&#8221;</p>
<p>I have enabled the  ‘optimize for ad hoc workloads’,1</p>
<p>though i am getting the memory issue.  Installed RAM is 16GB and  SQL Server Max server memory setting is 10240. </p>
<p>Please guide me to resolve this problem. Server is in production state.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhay</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-174109</link>
		<dc:creator><![CDATA[abhay]]></dc:creator>
		<pubDate>Sun, 02 Oct 2011 05:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-174109</guid>
		<description><![CDATA[I am getting out put as Compiled Plan Stub]]></description>
		<content:encoded><![CDATA[<p>I am getting out put as Compiled Plan Stub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhay</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-174108</link>
		<dc:creator><![CDATA[abhay]]></dc:creator>
		<pubDate>Sun, 02 Oct 2011 05:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-174108</guid>
		<description><![CDATA[I have tried same example and I am not getting expected result.

my version of Sql server is following.

Can you please help in this?

Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86)   Jul  9 2008 14:43:34   Copyright (c) 1988-2008 Microsoft Corporation  Enterprise Edition on Windows NT 5.1  (Build 2600: Service Pack 3)]]></description>
		<content:encoded><![CDATA[<p>I have tried same example and I am not getting expected result.</p>
<p>my version of Sql server is following.</p>
<p>Can you please help in this?</p>
<p>Microsoft SQL Server 2008 (RTM) &#8211; 10.0.1600.22 (Intel X86)   Jul  9 2008 14:43:34   Copyright (c) 1988-2008 Microsoft Corporation  Enterprise Edition on Windows NT 5.1  (Build 2600: Service Pack 3)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-104113</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 07:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-104113</guid>
		<description><![CDATA[I ran this on 6 Dec 2010 using SQL Server 2008 Enterprise Edition SP1. With &#039;optimize for ad hoc workloads&#039; = 1, running a query once produces one record when I query sys.dm_exec_cached_plans, but column cacheobjtype shows &#039;Compiled Plan Stub&#039;. When I run the same query again, cacheobjtype shows &#039;Compiled Plan&#039;.

This seem to be a change from when you ran your tests.

Good article. I will use this information to demonstrate to some co-workers.]]></description>
		<content:encoded><![CDATA[<p>I ran this on 6 Dec 2010 using SQL Server 2008 Enterprise Edition SP1. With &#8216;optimize for ad hoc workloads&#8217; = 1, running a query once produces one record when I query sys.dm_exec_cached_plans, but column cacheobjtype shows &#8216;Compiled Plan Stub&#8217;. When I run the same query again, cacheobjtype shows &#8216;Compiled Plan&#8217;.</p>
<p>This seem to be a change from when you ran your tests.</p>
<p>Good article. I will use this information to demonstrate to some co-workers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shoaib</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-97641</link>
		<dc:creator><![CDATA[Shoaib]]></dc:creator>
		<pubDate>Wed, 03 Nov 2010 14:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-97641</guid>
		<description><![CDATA[Hi Pinal,

I am using SQL Server 2008 Stnd on Windows 2008 Stnd.

the server had 4 GB memory and SS was using 3.5 GB
now we increased to 10 GB and SS is using 8.5 GB.

We want to know, out of 17 databases on the default instance, which one is using how much memory or which application is using more memory?
also 
memory usage break-down by databases?

please reply ASAP as it is in production.

Thanks for your help and time.

Shoaib]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am using SQL Server 2008 Stnd on Windows 2008 Stnd.</p>
<p>the server had 4 GB memory and SS was using 3.5 GB<br />
now we increased to 10 GB and SS is using 8.5 GB.</p>
<p>We want to know, out of 17 databases on the default instance, which one is using how much memory or which application is using more memory?<br />
also<br />
memory usage break-down by databases?</p>
<p>please reply ASAP as it is in production.</p>
<p>Thanks for your help and time.</p>
<p>Shoaib</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavan</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-84563</link>
		<dc:creator><![CDATA[pavan]]></dc:creator>
		<pubDate>Wed, 18 Aug 2010 19:40:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-84563</guid>
		<description><![CDATA[Hello Pinal,

It was interesting your material is really helpful 

but the thing is in here 

how to delete the cached plans used less than 2 times

i.e., I dont want to delete all cached plans only some of them.]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>It was interesting your material is really helpful </p>
<p>but the thing is in here </p>
<p>how to delete the cached plans used less than 2 times</p>
<p>i.e., I dont want to delete all cached plans only some of them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IJeb Reitsma</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-73395</link>
		<dc:creator><![CDATA[IJeb Reitsma]]></dc:creator>
		<pubDate>Thu, 27 May 2010 07:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-73395</guid>
		<description><![CDATA[Hi Pinal,

Thanks for your post.
I have some comments.

The script (complete file) contains a bug. The statement &quot;SP_CONFIGURE &#039;optimize for ad hoc workloads&#039;,0&quot; should be &quot;SP_CONFIGURE &#039;optimize for ad hoc workloads&#039;,1&quot; otherwise the feature won&#039;t be enabled.

The result of the second query is different for me, in fact it does return a row where cacheobjtype = &quot;Compiled Plan Stub&quot;.

The result of the third query is different for me, in fact it does return a row where usecounts is 4 and not 5 as you state. This would mean that when the query is run for the second time the &quot;Compiled Plan Stub&quot; is replaced for a &quot;Compiled Plan&quot;.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for your post.<br />
I have some comments.</p>
<p>The script (complete file) contains a bug. The statement &#8220;SP_CONFIGURE &#8216;optimize for ad hoc workloads&#8217;,0&#8243; should be &#8220;SP_CONFIGURE &#8216;optimize for ad hoc workloads&#8217;,1&#8243; otherwise the feature won&#8217;t be enabled.</p>
<p>The result of the second query is different for me, in fact it does return a row where cacheobjtype = &#8220;Compiled Plan Stub&#8221;.</p>
<p>The result of the third query is different for me, in fact it does return a row where usecounts is 4 and not 5 as you state. This would mean that when the query is run for the second time the &#8220;Compiled Plan Stub&#8221; is replaced for a &#8220;Compiled Plan&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-59853</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Sun, 17 Jan 2010 11:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-59853</guid>
		<description><![CDATA[Hello Henry,

In SQL Server 20055 and earlier version the cached plan of ad hoc queries are cleared from memory only on memory pressure. Then SQl engine identify the cached plans that are least useful. This approach affect the performance of running job. In SQL Server 2008, the option &quot;optimize for ad hoc workloads&quot; implements a proactive approach to avoid memory pressure and improve memory utilization.

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Henry,</p>
<p>In SQL Server 20055 and earlier version the cached plan of ad hoc queries are cleared from memory only on memory pressure. Then SQl engine identify the cached plans that are least useful. This approach affect the performance of running job. In SQL Server 2008, the option &#8220;optimize for ad hoc workloads&#8221; implements a proactive approach to avoid memory pressure and improve memory utilization.</p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eko Indriyawan</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-59824</link>
		<dc:creator><![CDATA[Eko Indriyawan]]></dc:creator>
		<pubDate>Sat, 16 Jan 2010 03:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-59824</guid>
		<description><![CDATA[Work in MS SQL Server Express 2008, but there is no affect, I mean, it still show the ad hoc query in cache.

Can you explain to me about this?]]></description>
		<content:encoded><![CDATA[<p>Work in MS SQL Server Express 2008, but there is no affect, I mean, it still show the ad hoc query in cache.</p>
<p>Can you explain to me about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-59221</link>
		<dc:creator><![CDATA[Henry Ho]]></dc:creator>
		<pubDate>Thu, 31 Dec 2009 20:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-59221</guid>
		<description><![CDATA[how does this differ from Plan Caching introduced in SQL Sever 2005?]]></description>
		<content:encoded><![CDATA[<p>how does this differ from Plan Caching introduced in SQL Sever 2005?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tilak</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-51492</link>
		<dc:creator><![CDATA[Tilak]]></dc:creator>
		<pubDate>Sun, 03 May 2009 10:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-51492</guid>
		<description><![CDATA[Hi ,

Nice article.

I have a stored procedure which is running fine in sql server 2000. But when i upgrade it to sql server 2008 it running for long time and never stopped execution. I tried to stop and rerun but no use. 

Can you please let me know what action to be taken on this to get it run again. FYI the execution time for this SP in 2000 is about 60 mins.]]></description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>Nice article.</p>
<p>I have a stored procedure which is running fine in sql server 2000. But when i upgrade it to sql server 2008 it running for long time and never stopped execution. I tried to stop and rerun but no use. </p>
<p>Can you please let me know what action to be taken on this to get it run again. FYI the execution time for this SP in 2000 is about 60 mins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49990</link>
		<dc:creator><![CDATA[Pradeep]]></dc:creator>
		<pubDate>Thu, 26 Mar 2009 03:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49990</guid>
		<description><![CDATA[Thanks Jerry Hung and Pinal...I thought so, because when I ran a select statement on sys.configurations table under master database, the option was not there. 

And, Pinal I read your latest blog entry which you wrote today(26 Mar 08 - SQL Server - Fix : Error : Msg 15123....). Thanks once again. 

Regards,

Pradeep Nair]]></description>
		<content:encoded><![CDATA[<p>Thanks Jerry Hung and Pinal&#8230;I thought so, because when I ran a select statement on sys.configurations table under master database, the option was not there. </p>
<p>And, Pinal I read your latest blog entry which you wrote today(26 Mar 08 &#8211; SQL Server &#8211; Fix : Error : Msg 15123&#8230;.). Thanks once again. </p>
<p>Regards,</p>
<p>Pradeep Nair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49789</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Mon, 23 Mar 2009 19:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49789</guid>
		<description><![CDATA[Works in 2008

I just tested it in SQL 2005 Standard 64 bit SP2

There is no &quot;optimize for ad hoc workloads&quot; option, if you just run SP_CONFIGURE to display all options


sp_CONFIGURE &#039;show advanced options&#039;,1
RECONFIGURE
GO

sp_CONFIGURE &#039;optimize for ad hoc workloads&#039;,1
RECONFIGURE
GO 

gives me
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option &#039;optimize for ad hoc workloads&#039; does not exist, or it may be an advanced option.]]></description>
		<content:encoded><![CDATA[<p>Works in 2008</p>
<p>I just tested it in SQL 2005 Standard 64 bit SP2</p>
<p>There is no &#8220;optimize for ad hoc workloads&#8221; option, if you just run SP_CONFIGURE to display all options</p>
<p>sp_CONFIGURE &#8216;show advanced options&#8217;,1<br />
RECONFIGURE<br />
GO</p>
<p>sp_CONFIGURE &#8216;optimize for ad hoc workloads&#8217;,1<br />
RECONFIGURE<br />
GO </p>
<p>gives me<br />
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51<br />
The configuration option &#8216;optimize for ad hoc workloads&#8217; does not exist, or it may be an advanced option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49705</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 22 Mar 2009 17:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49705</guid>
		<description><![CDATA[Hm.. interesting. May be because it is SQL Server Express. I will have to test with my Express box. I Will do so and will let you know.

Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>Hm.. interesting. May be because it is SQL Server Express. I will have to test with my Express box. I Will do so and will let you know.</p>
<p>Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49703</link>
		<dc:creator><![CDATA[Pradeep]]></dc:creator>
		<pubDate>Sun, 22 Mar 2009 16:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49703</guid>
		<description><![CDATA[Hi Pinal,

Thanks for the response. I am executing both the command together and separately. But I am still getting the same error. The first command &quot;sp_CONFIGURE &#039;show advanced options&#039;, 1&quot; its running successfully and giving a response as &quot;Configuration option &#039;show advanced options&#039; changed from 1 to 1. Run the RECONFIGURE statement to install.&quot;. But the second script is throwing the same error which I mentioned in my previous comment. Thanks.

Regards
Pradeep Nair]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for the response. I am executing both the command together and separately. But I am still getting the same error. The first command &#8220;sp_CONFIGURE &#8216;show advanced options&#8217;, 1&#8243; its running successfully and giving a response as &#8220;Configuration option &#8216;show advanced options&#8217; changed from 1 to 1. Run the RECONFIGURE statement to install.&#8221;. But the second script is throwing the same error which I mentioned in my previous comment. Thanks.</p>
<p>Regards<br />
Pradeep Nair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49681</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 22 Mar 2009 10:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49681</guid>
		<description><![CDATA[Pradeep,

It is possible to run in SQL Server 2005 and it works fine. You need to turn on advance option first as I have suggested in the blog post.

sp_CONFIGURE ’show advanced options’,1
RECONFIGURE
GO

sp_CONFIGURE ‘optimize for ad hoc workloads’,0
RECONFIGURE
GO 

Regards,
Pinal]]></description>
		<content:encoded><![CDATA[<p>Pradeep,</p>
<p>It is possible to run in SQL Server 2005 and it works fine. You need to turn on advance option first as I have suggested in the blog post.</p>
<p>sp_CONFIGURE ’show advanced options’,1<br />
RECONFIGURE<br />
GO</p>
<p>sp_CONFIGURE ‘optimize for ad hoc workloads’,0<br />
RECONFIGURE<br />
GO </p>
<p>Regards,<br />
Pinal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49679</link>
		<dc:creator><![CDATA[Pradeep]]></dc:creator>
		<pubDate>Sun, 22 Mar 2009 10:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49679</guid>
		<description><![CDATA[Hi Pinal,

Is it so that the following code runs only in SQL Server 2008, because when I am running this on SQL Express 2005 it giving error &quot;Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option &#039;optimize for ad hoc workloads&#039; does not exist, or it may be an advanced option.&quot;

sp_CONFIGURE ‘optimize for ad hoc workloads’,0
RECONFIGURE
GO 

I checked in sys.configurations table under master db and there is no option such as &#039;optimize for ad hoc workloads&#039; available over there. 

Thanks
Pradeep Nair]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Is it so that the following code runs only in SQL Server 2008, because when I am running this on SQL Express 2005 it giving error &#8220;Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51<br />
The configuration option &#8216;optimize for ad hoc workloads&#8217; does not exist, or it may be an advanced option.&#8221;</p>
<p>sp_CONFIGURE ‘optimize for ad hoc workloads’,0<br />
RECONFIGURE<br />
GO </p>
<p>I checked in sys.configurations table under master db and there is no option such as &#8216;optimize for ad hoc workloads&#8217; available over there. </p>
<p>Thanks<br />
Pradeep Nair</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49630</link>
		<dc:creator><![CDATA[Henry]]></dc:creator>
		<pubDate>Sat, 21 Mar 2009 18:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49630</guid>
		<description><![CDATA[great article.  thank you!]]></description>
		<content:encoded><![CDATA[<p>great article.  thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ritesh Shah</title>
		<link>http://blog.sqlauthority.com/2009/03/21/sql-server-2008-optimize-for-ad-hoc-workloads-advance-performance-optimization/#comment-49591</link>
		<dc:creator><![CDATA[Ritesh Shah]]></dc:creator>
		<pubDate>Sat, 21 Mar 2009 01:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=3819#comment-49591</guid>
		<description><![CDATA[Hi Pinal,

Really very good digging. thanks for sharing this useful tip with us.

Ritesh Shah]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Really very good digging. thanks for sharing this useful tip with us.</p>
<p>Ritesh Shah</p>
]]></content:encoded>
	</item>
</channel>
</rss>
