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

前端 未结 11 1436
抹茶落季
抹茶落季 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条回答
  •  旧时难觅i
    2021-01-30 17:35

    Ignoring the check results in a corrupted install. This is the only solution that worked for me:

    1. Create a C# console app with the following code: Console.WriteLine(string.Format("{0,3}", CultureInfo.InstalledUICulture.Parent.LCID.ToString("X")).Replace(" ", "0"));

    2. Run the app and get the 3 digit code.

    3. Run > Regedit, open the following path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib

    Now, if you don't have a folder underneath that path with the 3 digit code from step 2, create it. If you do have the folder, check that it has the "Counter" and "Help" values set under that path. It probably doesn't -- which is why the check fails.

    Create the missing Counter and Help keys (REG_MULTI_SZ). For the values, copy them from the existing path above (probably 009).

    The check should now pass.

提交回复
热议问题