简体   繁体   English

随附的图片使我的问题更加清楚。如何编写正确的命令行参数以安装SQL Server 2008 R2?

[英]Pics included to make my Q more clear.How to write correct command line arguments for installing SQL Server 2008 R2?

I have been trying to write the right command line for installing SQL Sever 2008 R2 Express version 4 days and I have read all related posts on this website as well as other website. 我一直在尝试为安装SQL Sever 2008 R2 Express版本4天编写正确的命令行,并且已经阅读了该网站以及其他网站上的所有相关文章。 I also have read the " How to: Install SQL Server 2008 R2 from the Command Prompt " on MSDN. 我还阅读了MSDN上的“ 如何:从命令提示符下安装SQL Server 2008 R2 ”。 But none of them works for me. 但是他们都不适合我。

Now here is my arguments. 现在这是我的论点。

/qs /ACTION=Install /FEATURES=SQL /INSTANCENAME=MSSQLSERVER /ADDCURRENTUSERASSQLADMIN=True /IACCEPTSQLSERVERLICENSETERMS

Problem :By using it, the SQL installer can show up until the Installation Process and closes without any errors popping up. 问题:通过使用它,SQL安装程序可以显示直到安装过程并关闭,并且不会弹出任何错误。

Here are steps my current can go through: 以下是我目前可以通过的步骤:

1. 1。 在此处输入图片说明

2. 2。 在此处输入图片说明

3. 3。 在此处输入图片说明

4. 4。 在此处输入图片说明

So as you can see, the SQL Installation can go to the Installation Progress: Validating feature settings and then it closes. 如您所见,“ SQL安装”可以转到“安装进度:验证功能设置”,然后将其关闭。

I have used all my ideas to find out what's wrong in my command line. 我已经用我所有的想法来找出命令行中的问题。

Please help me to write the right command line for SQL Server 2008 R2 installation. 请帮助我为SQL Server 2008 R2安装编写正确的命令行。

Thank you!!! 谢谢!!!

I finally got it right. 我终于明白了。

Here is the command line I use and it works. 这是我使用的命令行,它可以正常工作。

 /qs /ACTION=Install /FEATURES=SQLEngine,SSMS /INSTANCENAME="Your instance name here" /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="Administrators" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS

You can also change other accounts, but the accounts you are going to use must have been created in your system and it is better an admin account and you do not need to specify the password. 您也可以更改其他帐户,但是要使用的帐户必须已在系统中创建,并且最好是管理员帐户,并且无需指定密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM