Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.

Now here is my arguments(exclude setup.exe).

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


Problem :By using it, the SQL installer can show up and proceed until the Installation Process and closes without any errors popping up.

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!!!
Posted

"SQL Server 2008 Unattended Install"[^]

Frankly, I never include a SQL Server install in my app installers. It's up to the user to have a SQL Server installation already running. They just need to supply the server name, username and password to get at it.
 
Share this answer
 
Comments
franva008 8-May-13 0:26am    
Hi Dave, thank you for your reply.
In my case, the users want to minimize their work, so I have to include pretty much everything for them. What they need to do is to double click the installer and it will check the pre-requisite software and install our own software after that.
I finally got it right.

Here is the command line I use and it works.

C#
/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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900