0

我正在使用以下命令手动安装 SQL Server 2005。

H:\SQLServer\SQLExpr.exe /ADDLOCAL="All"/INSTANCENAME="SQLEXPRESS"/SAPWD="test123"

它不会返回任何错误,但也不会真正安装 SQL Server。
首先它显示在此处输入图像描述

当我单击下一步时,它会显示一个报告 在此处输入图像描述

并单击确定,它会关闭。但是没有安装 SQL Server。谢谢

4

1 回答 1

0

A cursory glance of the documentation suggests you need to specify at least one of /qn or /qb on the command line.

The /qn switch suppresses all Setup dialog boxes and error messages. If the /qn switch is specified, all Setup messages, including error messages, are written to Setup log files. For more information about log files, see How to: View SQL Server 2005 Setup Log Files.

The /qb switch allows the display of basic Setup dialog boxes. Error messages are also displayed.

Although I've never had to install SQL Server from the command line before, it seems that simply by reading the documentation it is clear the easiest way to do this is with an options file:

To run a command prompt installation of SQL Server 2005 using an .ini file

Run Setup.exe from the command prompt:

<CD or DVD Drive>\Setup.exe /settings C:/set.ini /qn 
于 2013-01-21T08:10:02.580 回答