栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > asp

SQL Server 2005安装过程中出现错误的解决办法

asp 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

SQL Server 2005安装过程中出现错误的解决办法

SQL Server 2005的英文RTM版我一个月前就下载了,到现在也没装上。
安装过程中总是提示我“无法连接数据库,不能对SQL Server进行配置”等等类似的信息。
我开始以为是我系统的原因,重装了好几次也不起作用。

今天终于找到了解决办法,感谢Uestc95提供的这个方法。

把以下代码保存为.bat文件运行即可。
复制代码 代码如下:
@echo on
cd /d c:temp
if not exist %windir%system32wbem goto TryInstall
cd /d %windir%system32wbem
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
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/59834.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号