SQL Express installation problems
Posted: Tue Jan 27, 2015 1:37 pm
I have been wrestling for days with creating a setup that installs SQL Express 2014, creates my application database, executes a script on the new database and then copies my application files. I am choosing the application runtime for SQL Express and going into the MSIcode area and editing the MSSQL2014_COMMAND_LINE_X86 variable to the following:
/q /ACTION=Install /FEATURES=SQL,SDK /INSTANCENAME="MYINSTANCE" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /SAPWD="Sq1S#rv$r"/SQLSVCPASSWORD="Sq1C#ep$q" /SQLSYSADMINACCOUNTS="$SQL_COMPUTER_NAME$\$SQL_USER_NAME$" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IAcceptSQLServerLicenseTerms
If I compile and run the setup SQL Express will install however the sa password is NOT Sq1S#rv$r and I can only connect with Windows Authentication. Additionally I cannot seem to find the right entries on the SQL Databases section to actually create a database and run a script. I even tried using the actual machine name as opposed to a variable for the server name without success. This really should not be this hard. Any help would be appreciated.
/q /ACTION=Install /FEATURES=SQL,SDK /INSTANCENAME="MYINSTANCE" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /SECURITYMODE=SQL /SAPWD="Sq1S#rv$r"/SQLSVCPASSWORD="Sq1C#ep$q" /SQLSYSADMINACCOUNTS="$SQL_COMPUTER_NAME$\$SQL_USER_NAME$" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IAcceptSQLServerLicenseTerms
If I compile and run the setup SQL Express will install however the sa password is NOT Sq1S#rv$r and I can only connect with Windows Authentication. Additionally I cannot seem to find the right entries on the SQL Databases section to actually create a database and run a script. I even tried using the actual machine name as opposed to a variable for the server name without success. This really should not be this hard. Any help would be appreciated.