How do I fix a “Performance counter registry hive consistency” when installing SQL Server R2 Express?

前端 未结 11 1408
抹茶落季
抹茶落季 2021-01-30 16:47

I\'m trying to install SQL Server 2008 R2 Express from this site:

http://www.microsoft.com/express/database/

I have a 64-bit, Windows 7 machine.

I have t

11条回答
  •  粉色の甜心
    2021-01-30 17:17

    Use Rafael's solution: http://social.msdn.microsoft.com/Forums/en/sqlsetupandupgrade/thread/ffffdf0349-557b-48c7-bf82-6bd1adb5c694..

    Added data from link to avoid link rot..

    put this at any Console application:

    string.Format("{0,3}", CultureInfo.InstalledUICulture.Parent.LCID.ToString("X")).Replace(" ", "0");

    Watch the result. At mine it was "016".

    Then you go to the registry at this key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
    

    and create another one with the name you got from the string.Format result.

    In my case:

    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\016"
    

    and copy the info that is on any other key in this Perflib to this key you just created. Run the instalation again.

    Just run the script and get your 3 digit code. Then follow his simple and quick steps, and you're ready to go!

    Cheers

提交回复
热议问题