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

StackOverflow https://stackoverflow.com/questions/16413479

Question

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. I also have read the "How to: Install SQL Server 2008 R2 from the Command Prompt" on MSDN. 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.

Here are steps my current can go through:

1.enter image description here

2.enter image description here

3.enter image description here

4.enter image description here

So as you can see, the SQL Installation can go to the Installation Progress: Validating feature settings and then it closes.

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.

Thank you!!!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top