How to resolve Performance counter registry hive consistency check SQL Server 20008

Today I was trying to install a new version of SQL Server 2008 R2 into my dev box that my current customer has handed me. First of all I need to do an upgrade because when I first got the PC I installed Visual Studio 2008, which by default installs SQL Express 2005. To do an SQL upgrade install you must run the installation from a command prompt and administration rights with this command setup.exe SKUUPGADE=1 if you don’t your upgrade will fail.

Anyway my setup failed for a whole different reason. After doing some next next clicking the setup got to the Setup Support Rules and all checks passed with exception to the cryptic error of Performance counter registry hive consistency check.

This issue seems to affect users with a non English version of the OS. I run a Swedish Windows 7 version. The only way to resolve this issue is to hack the registry. I found these steps from by Scot Ma in a msdn forum.

Use this program to find out what LICD your system have.

Here is the code it uses. If you have the .NET compiler you can create a console application and cpmpile your own.

using System;
using System.Globalization;

namespace CurrentSystemLICD
{
    class CurrentSystemLicd
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Your LCID: " + string.Format("{0,3}", CultureInfo.InstalledUICulture.Parent.LCID.ToString("X")).Replace(" ", "0")); 
            Console.WriteLine("Press any key to exit");
            Console.ReadLine();
        }
    }
}

2) Once you figure out which key it is (my key for my Swedish Windows7 is 01D). Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib and copy the whole 009 folder, edit the exported .reg file and change the 009 value to your own LCID. Then import the edited file.

Open the text value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009\Counter and scroll to the second last line. You will see a number like this, write down the number. This is the Last Counter number the system uses

e.g.:
11838
Cumulative Guest Run Time

3) do the same for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009\Help and write down the number. This is the Last Help number the system uses

e.g.:
11839
The guest run time represents the number of microseconds the .....

4) Now go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\Last Counter. Put the number from (2) as the new value of Last Counter

5) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\Last Help. Put the number from (3) as the new value of Last Help

After following these steps I managed to get my installation going.

Good luck!

Print | posted on Thursday, February 03, 2011 10:46 PM

Comments

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by Leif on 2/7/2011 7:52 PM

Nice post! But I've never heard of SQL Server 20008 before :-)

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by tom on 4/11/2011 6:23 PM

I know what an SQL server 2008 is: it's unprotected and has loopholes (IMHO). I agree with the writer that you have to hack the registry, but at the same time, I've heard of issues that if you have certain software combinations are installed (especially freeware), then you'd better have some disaster recovery in place before you get under the hood. I prefer to have everything backed up whenever I get into the registry, or practice on another machine first and then copy/paste the code onto the server platform that needs attention.

Tom, PA

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by Phone-4g Blog on 6/3/2011 12:51 PM

I have the same problem and spend several days to solve it. I had to simply reinstall all software on the PC. Thank you for information. I will keep it in my mind.

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by Free Credit Report on 7/13/2011 8:13 PM

I hate to correct mistakes in registry. If it was free software it is ok. But when I have paid money - it is wrong.

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by D-Force on 7/26/2011 10:53 AM

I've just made a small patch for this problem just incase someone might not be able to copy the registry settings. Or does not know how to do this.

Use it at your own risk! I'm not responsible for crapping up your registry! Always make a backup of the registry using the System Restore function!

www.uploadarchief.net/.../sql2008r2_patch.zip

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by D-Force on 7/26/2011 10:55 AM

By the way, sources are included just incase you need to fiddle around with or improve ;)

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by Free Credit Report on 7/27/2011 2:47 PM

Just in time. Thanks for help. I have solved my problem with installation.

Gravatar

# re: How to resolve Performance counter registry hive consistency check SQL Server 20008, Posted by Michael on 1/17/2012 3:23 PM

try this, it works for me

setup .exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorruptedCheck

Comments

Title: *
Name: *
Email: (never displayed)
Website:
Comment: *  
Please add 7 and 2 and type the answer here: