SQL Server 2005安裝過(guò)程中出現(xiàn)錯(cuò)誤的解決辦法
更新時(shí)間:2007年02月12日 00:00:00 作者:
SQL Server 2005的英文RTM版我一個(gè)月前就下載了,到現(xiàn)在也沒(méi)裝上。
安裝過(guò)程中總是提示我“無(wú)法連接數(shù)據(jù)庫(kù),不能對(duì)SQL Server進(jìn)行配置”等等類(lèi)似的信息。
我開(kāi)始以為是我系統(tǒng)的原因,重裝了好幾次也不起作用。
今天終于找到了解決辦法,感謝Uestc95提供的這個(gè)方法。
把以下代碼保存為.bat文件運(yùn)行即可。
@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
安裝過(guò)程中總是提示我“無(wú)法連接數(shù)據(jù)庫(kù),不能對(duì)SQL Server進(jìn)行配置”等等類(lèi)似的信息。
我開(kāi)始以為是我系統(tǒng)的原因,重裝了好幾次也不起作用。
今天終于找到了解決辦法,感謝Uestc95提供的這個(gè)方法。
把以下代碼保存為.bat文件運(yùn)行即可。
復(fù)制代碼 代碼如下:
@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
您可能感興趣的文章:
- Sql Server安裝出錯(cuò),安裝程序配置服務(wù)器失敗的解決方法小結(jié)
- Sqlserver 2005附加數(shù)據(jù)庫(kù)時(shí)出錯(cuò)提示操作系統(tǒng)錯(cuò)誤5(拒絕訪問(wèn))錯(cuò)誤5120的解決辦法
- SQL Server 2005/2008 導(dǎo)入導(dǎo)出數(shù)據(jù)常見(jiàn)報(bào)錯(cuò)解決方法
- win2008下安裝SQL SERVER 2005出現(xiàn)IIS功能要求 警告解決方案
- SQLServer2005安裝提示服務(wù)無(wú)法啟動(dòng)原因分析及解決
- SQL Server 2005“備份集中的數(shù)據(jù)庫(kù)備份與現(xiàn)有的數(shù)據(jù)庫(kù)不同”解決方法
- SQL Server 2005 RTM 安裝錯(cuò)誤 :The SQL Server System Configuration Checker cannot be executed due to
- 無(wú)法在com+ 目錄中安裝和配置程序集 錯(cuò)誤:-2146233087的解決方法[已測(cè)]
- SQL Server 2005 安裝遇到的錯(cuò)誤提示和解決方法
相關(guān)文章
.net中的Span<T>類(lèi)和Memory<T>類(lèi)介紹
這篇文章介紹了.net中的Span<T>類(lèi)和Memory<T>類(lèi),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2022-07-07發(fā)布WEB站點(diǎn)時(shí)出現(xiàn)Server Application Unavailable
發(fā)布WEB站點(diǎn)時(shí)出現(xiàn)Server Application Unavailable...2006-12-12