SQL 2005

where do you set the parameter for optimize for ad-hoc workloads in SQL 2005?
dastaubAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TempDBACommented:
First run the below statement to make all the properties visible

EXEC sp_configure 'show advanced options',1
GO
RECONFIGURE WITH OVERRIDE
GO

Then run the following query to optimize it.
EXEC sp_configure 'optimize for ad hoc workloads',1
GO
RECONFIGURE WITH OVERRIDE
GO
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TempDBACommented:
oops... you said 2005. Sorry I missed it.
We can't do anything as such in 2005.
0
dastaubAuthor Commented:
I RAN IT IN SQL 2008 R2 AND GOT THIS IN RESPONSE

Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option 'optimize for ad hoc workloads' does not exist, or it may be an advanced option.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Anthony PerkinsCommented:
>>We can't do anything as such in 2005. <<
Right.  It is available starting with SQL Server 2008.
0
dastaubAuthor Commented:
>>We can't do anything as such in 2005. <<
Right.  It is available starting with SQL Server 2008.

I ran it in Server 2008 and got the response
Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option 'optimize for ad hoc workloads' does not exist, or it may be an advanced option.
0
dastaubAuthor Commented:
when i ran it in SQL 2008, i got:
Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
Configuration option 'optimize for ad hoc workloads' changed from 0 to 1. Run the RECONFIGURE statement to install.

when i ran it in 2008, but in a 2005 instance, i got:

Configuration option 'show advanced options' changed from 1 to 1. Run the RECONFIGURE statement to install.
Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
The configuration option 'optimize for ad hoc workloads' does not exist, or it may be an advanced option.
0
Anthony PerkinsCommented:
And again in case it was not clear the first two times:  That option is only available starting with SQL Server 2008.  It does matter what SSMS version you are using, if the result of SELECT @@VERSION < 10.0 then you are simply out of luck you cannot use it.  Period.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.