SQLSERVER SQLSERVER 2005 COM+ 目录要求

@echo off
setlocal
@echo %WINDIR%/System32/msdtc.exe -uninstall
%WINDIR%/System32/msdtc.exe -uninstall
call :delkey "HKCR/CID"
call :delkey "HKLM/SYSTEM/CurrentControlSet/Services/MSDTC"
call :delkey "HKLM/SYSTEM/ControlSet001/Services/MSDTC"
call :delkey "HKLM/SYSTEM/ControlSet002/Services/MSDTC"
call :delkey "HKLM/Software/Microsoft/MSDTC"
@echo %WINDIR%/System32/msdtc.exe -install
%WINDIR%/System32/msdtc.exe -install
endlocal
goto :EOF
:delkey
set key=%1
call :delkeyq %key% >nul 2>&1
@echo. 
goto :EOF
:delkeyq
REG DELETE %key% /F

创建一个bat文件运行即可/


这次尝试的是网上前面两种方法,可惜似乎结果都不理想,直截了当的采用这个方案完事,以此存档便于后期查看。

 

摘要: http://blog.csdn.net/yaday/article/details/4099223

你可能感兴趣的:(delete,sqlserver)