SQLServer2005的英文RTM版我一个月前就下载了,到现在也没装上。
安装过程中总是提示我“无法连接数据库,不能对SQLServer进行配置”等等类似的信息。
我开始以为是我系统的原因,重装了好几次也不起作用。
今天终于找到了解决办法,感谢Uestc95提供的这个方法。
把以下代码保存为.bat文件运行即可。
复制代码 代码如下:
@echoon
cd/dc:temp
ifnotexist%windir%system32wbemgotoTryInstall
cd/d%windir%system32wbem
netstopwinmgmt
winmgmt/kill
ifexistRep_bakrdRep_bak/s/q
renameRepositoryRep_bak
for%%iin(*.dll)doRegSvr32-s%%i
for%%iin(*.exe)docall:FixSrv%%i
for%%iin(*.mof,*.mfl)doMofcomp%%i
netstartwinmgmt
gotoEnd
:FixSrv
if/I(%1)==(wbemcntl.exe)gotoSkipSrv
if/I(%1)==(wbemtest.exe)gotoSkipSrv
if/I(%1)==(mofcomp.exe)gotoSkipSrv
%1/RegServer
:SkipSrv
gotoEnd
:TryInstall
ifnotexistwmicore.exegotoEnd
wmicore/s
netstartwinmgmt
:End
【SQL Server 2005安装过程中出现错误的解决办法】相关文章:
★ silverlight2.0Beta版TextBox输入中文解决方法
★ WEB上调用HttpWebRequest奇怪问题的解决方法
★ ASP.NET输出PNG图片时出现GDI+一般性错误的解决方法
★ SQL Server 2005 RTM 安装错误 :The SQL Server System Configuration Checker cannot be executed due to