启动Database Engine Tuning Advisor出现错误:
When you use Database Engine Tuning Advisor to analyze the performance effects of workloads in Microsoft SQL Server 2005, you may receive the following error message:
R6031- Attempt to initialize the CRT more than once. This indicates a bug in your application.
  
1.修改注册表

  • Click Start, click Run, type regedit, and then click OK.
  • Locate the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
    HKLM\Software\Microsoft\WindowsNT\CurrentVersion\AppCompatFlags\Layers(这个路径也要检查)
  • In the right pane, right-click the registry entry for the Explorer.exe process, and then click Delete.
  • In the Confirm Value Delete dialog box, click Yes.
  • Exit Registry Editor.
  • Restart the computer.
  •  
    2.删除环境变量__COMPAT_LAYER
    Also please check if an environment variable __COMPAT_LAYER is set?
    "set __COMPAT_LAYER=" , basically disabled the compat layer and dta ran OK
     

    相关链接:
    microsoft
    http://support.microsoft.com/Default.aspx?kbid=913395

    posted on 2009-06-04 14:24  QzQ  阅读(293)  评论(0)    收藏  举报