查看日志文件;发现是以下问题:
20:42:04 Process Exit Code: (-1)
20:42:35 安装程序配置服务器失败。参考服务器错误日志和 C:\WINDOWS\sqlstp.log 了解更多信息。
20:42:35 Action CleanUpInstall:
20:42:35 C:\WINDOWS\TEMP\SqlSetup\Bin\scm.exe -Silent 1 -Action 4 -Service SQLSERVERAGENT
20:42:35 Process Exit Code: (1060) 指定的服务并未以已安装的服务存在。
20:42:35 C:\WINDOWS\TEMP\SqlSetup\Bin\scm.exe -Silent 1 -Action 4 -Service MSSQLSERVER
20:42:35 Process Exit Code: (0)
20:42:35 StatsGenerate returned: 2
20:42:35 StatsGenerate (0x80000000,0x1,0xf000000,0x300,2052,303,0x0,0x1,0,0,0
20:42:35 StatsGenerate -1,Administrator)
20:42:35 Installation Failed.
导致错误的原因主要是MNDE安装失败,运行regedit.exe
找如下健:HKEY_LOCAL_MACHINE--〉SOFTWARE--〉Microsoft--〉 Windows --〉CurrentVersion--〉Setup。删除这里的 ExceptionComponents 项,关闭注册表。
进入DOS切换到Windows/System32目录分别运行下面的命令:
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\mdaccore.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\sqlclnt.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\odbcconf.rsp
odbcconf.exe /S /Lv odbcconf.log /F %systemroot%\system32\redist.rsp
注册ODBC驱动程序。
其他原因的解决:
查看日志文件;发现是以下问题:
driver={sql server};server=ZHL;UID=sa;PWD=;database=master
[Microsoft][ODBC SQL Server Driver][Named Pipes]连接?
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionRead (ReadFile()).
driver={sql server};server=ZHL;UID=sa;PWD=;database=master
[Microsoft][ODBC SQL Server Driver][Named Pipes]连接?
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionRead (GetOverLappedResult()).
driver={sql server};server=ZHL;UID=sa;PWD=;database=master
[Microsoft][ODBC SQL Server Driver][Named Pipes]连接?
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionRead (GetOverLappedResult()).
SQL Server 配置?
解决方法:
安装时选择高级选项,然后选择重建注册表项;