首页 > 数据库 > SQL Server > 正文

SQL Server 2005 RTM 安装错误

2024-08-31 00:49:15
字体:
来源:转载
供稿:网友

昨天在安装sql 2005 rtm的时候碰到了这样一个错误:

title: microsoft sql server 2005 setup
------------------------------

the sql server system configuration checker cannot be executed due to wmi configuration on the machine xxxx error:2147749896 (0x80041008).

for help, click: http://go.microsoft.com/fwlink?linkid=20476&prodname=microsoft+sql+server&prodver=9.00.1399.06&evtsrc=setup.rll&evtid=70342

------------------------------
buttons:

ok
------------------------------

之前安装了n次都没有碰到,而机器也是干净的,新安装的英文windows server 2003 with lastest patchs。错误信息里面的link也没有提供任何可利用的信息。

从错误信息来看好像是wmi损坏了,于是google一下,发现有一个解决方法:re-installing wmi ,里面提到是因为更新2k3最新补丁造成的这个错误:the cause of this error is a corrupt install of wmi, caused by upgrading windows server 2003 to sp1 build 1277,虽然他针对的是ctp版本。但是发现根本不能运行。

我的2k3是sp1 build 1447,仍然出现这个错误。

幸运的是终于找到了一个fix wmi的script脚本,运行之后就好了:

fixwmi.cmd
------------------------

@echo on
cd /d c:/temp
if not exist %windir%/system32/wbem goto tryinstall
cd /d %windir%/system32/wbem
net stop winmgmt
winmgmt /kill
if exist rep_bak rd rep_bak /s /q
rename repository rep_bak
for %%i in (*.dll) do regsvr32 -s %%i
for %%i in (*.exe) do call :fixsrv %%i
for %%i in (*.mof,*.mfl) do mofcomp %%i
net start winmgmt
goto end

:fixsrv
if /i (%1) == (wbemcntl.exe) goto skipsrv
if /i (%1) == (wbemtest.exe) goto skipsrv
if /i (%1) == (mofcomp.exe) goto skipsrv
%1 /regserver

:skipsrv
goto end

:tryinstall
if not exist wmicore.exe goto end
wmicore /s
net start winmgmt
:end

如果你碰巧也遇到了这个问题,不妨看看能否解决?

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表