@echo off
@echo.
ECHO 本脚本程序只是在初次使用时需要运行一次
ECHO 以后请直接执行SQL Server Enterprise Manager.msc即可运行企业管理器
@echo.
@echo.
@echo 正在注册该程序的组件，请您稍等。。。。。。
@echo.
pushd "%~dp0"
regedit -s regadd.reg
RegSVR32 dbscan.dll /s
RegSVR32 insrepim.dll /s
RegSVR32 msmdcxml.dll /s
RegSVR32 repbr.dll /s
RegSVR32 repbrui.dll /s
RegSVR32 repodbc.dll /s
RegSVR32 mdt2dd.dll /s
RegSVR32 mdt2df.dll /s
RegSVR32 mdt2fref.dll /s
RegSVR32 mdt2fw.dll /s
RegSVR32 mdt2gddo.dll /s
RegSVR32 mdt2gddr.dll /s
RegSVR32 mdt2qd.dll /s
RegSVR32 msdt70.dll /s
RegSVR32 mdt2db.dll /s
RegSVR32 mdt2dbns.dll /s
RegSVR32 sqldbg.dll /s
RegSVR32 msmdcb80.dll /s
RegSVR32 msmdgd80.dll /s
RegSVR32 msolap80.dll /s
RegSVR32 msolui80.dll /s
RegSVR32 axscphst.DLL /s
RegSVR32 cdwtasks.dll /s
RegSVR32 cdwtskui.dll /s
RegSVR32 ctasksui.dll /s
RegSVR32 custtask.DLL /s
RegSVR32 dtsffile.DLL /s
RegSVR32 dtspkg.dll /s
RegSVR32 dtspump.DLL /s
RegSVR32 psdcscm.dll /s
RegSVR32 sqlvdir.dll /s
RegSVR32 stardds.dll /s
RegSvr32 sqlmmc.dll /s
RegSvr32 sqlns.dll /s
RegSvr32 sqllex.dll /s
RegSvr32 sqldmo.dll /s
RegSvr32 dtsui.dll /s
copy repbr.dll %windir%\system32
regsvr32 /s %windir%\system32\repbr.dll
@echo.
ECHO 已完成！以后请执行SQL Server Enterprise Manager.msc运行企业管理器
@echo.
ECHO 注：Windows2000 系统请安装MDAC (2.7版本以上) 才能连接数据库!
@echo.
pause
mmc "SQL Server Enterprise Manager.msc"
