5

How can I install SQL Server 2014 Express via command line on a new Windows 7 machine?

I tried the following command line; I didn't see any SQL service running or installed although no errors were shown. So what's the wrong with it? Any idea?

SQLEXPRESS.EXE /qs /ACTION=Install /FEATURES=SQLEngine 
               /INSTANCENAME=SQLEXPRESS 
               /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" 
               /SQLSVCPASSWORD="STR0NGP@$$" 
               /SQLSYSADMINACCOUNTS="NT AUTHORITY\NETWORK SERVICE" 
               /AGTSVCACCOUNT="NT AUTHORITY\Network Service" 
               /TCPENABLED=0 /X86="True" /SQMREPORTING="False" 
               /ISSVCSTARTUPTYPE="Automatic"  
               /ASCOLLATION="Latin1_General_CI_AS" 
               /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS"  
               /RSINSTALLMODE="FilesOnlyMode"
               /IACCEPTSQLSERVERLICENSETERMS 
3
  • should probably move to dba.stackexchange.com Commented Mar 7, 2016 at 2:41
  • why the down vote!? if you don't know the solution simply leave the post. Commented Mar 7, 2016 at 10:51
  • I didn't see a downvote, but I did vote to close in order to move it to another site, where you'd probably get more help ;) Commented Mar 7, 2016 at 12:17

1 Answer 1

3
Solved it: 
this will enable Mixed Authentication; SQL & windows. 
Also login using sa directly after installing the SQL server express.

SQLEXPRESS.EXE 
/IACCEPTSQLSERVERLICENSETERMS /HIDECONSOLE  
/Role="AllFeatures_WithDefaults" /INSTANCEID="SQLEXPRESS" 
/ACTION="Install" /HELP="False" /INDICATEPROGRESS="True" 
/QUIETSIMPLE="True" /X86="True" /ERRORREPORTING="False" 
/SQMREPORTING="False" /INSTANCENAME="SQLEXPRESS" 
/AGTSVCSTARTUPTYPE="Manual" /ISSVCSTARTUPTYPE="Automatic"    
/ISSVCACCOUNT="NT AUTHORITY\NetworkService"
/ASSVCSTARTUPTYPE="Automatic" /ASCOLLATION="Latin1_General_CI_AS" 
/ASDATADIR="Data" /ASLOGDIR="Log" /ASBACKUPDIR="Backup" /ASTEMPDIR="Temp" 
/ASCONFIGDIR="Config" /ASPROVIDERMSOLAP="1" 
/SQLSVCSTARTUPTYPE="Automatic"
/FILESTREAMLEVEL="0" /ENABLERANU="True"     
/SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" 
/SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" 
/ADDCURRENTUSERASSQLADMIN="True" 
/TCPENABLED="0" /NPENABLED="0" 
/BROWSERSVCSTARTUPTYPE="Disabled" /RSSVCSTARTUPTYPE="Automatic" /SECURITYMODE=SQL 
/SAPWD="Strong1Pa$$word"
Sign up to request clarification or add additional context in comments.

2 Comments

This would not explain "I didn't see any SQL service running or installed" but I'm glad you solved it
That was because the SQLServerExpress installer got extracted only but not installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.