Cannot open registry key 'HKLM\SYSTEM\CurrentControlSet\Services\MSSQL$xxx\Performance'. SQL Server performance counters are disabled

The above error message always appears when I install a new instance of sql server express 2005.

How do I enable performance counters.

I have tried unlodctr, lodctr

What keys is it expecting

adimitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> SQL Server performance counters are disabled

Performance counters for SQL Server are disabled in your machine.
Kindly check for Disable Performance Counters key value under HKLM\SYSTEM\CurrentControlSet\Services\MSSQL$xxx\Performance path which should have value as 1 (since counters are disabled).
Either delete that key or change it to 0 to enable Performance counters in that machine.
More info here:

http://blogs.msdn.com/psssql/archive/2009/03/03/how-it-works-almost-everything-you-wanted-to-know-about-the-sql-server-2005-2008-performance-counter-collection-components.aspx
http://ferventcoder.com/archive/2008/08/10/possible-performance-counter-corruption-or-performance-counters-are-just-disabled.aspx
0
adimitAuthor Commented:
the performance key wasn't in the registry error. The problem was with security rights.  couldn't use the local service account.  Assigned a local administrator account that was also a domain user as the account to run the sql service for that instance. this solved the problem.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

adimitAuthor Commented:
note: also had to give full directory rights to the service account. Full directory rights were applied to the sql server directory.
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
Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> couldn't use the local service account

You should use Local System or some Domain user with Administrative rights as the Startup account for SQL Server ( as a general practice)
And glad to see you got it fixed..
0
Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> Full directory rights were applied to the sql server directory.

Just add your domain user as part of SQLServer2005MSSQLUser$InstanceName which should suffice..
Another workaround is to grant Directory permissions explicitly to your domain user.
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

From novice to tech pro — start learning today.