Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Set SA password while using script to install SQL Express

Posted on 2014-03-24
4
363 Views
Last Modified: 2014-03-24
\setup.exe /q /ACTION=Install /FEATURES=SQL /INSTANCENAME=TOCTTARGPPC05 /SQLSVCACCOUNT="NT AUTHORITY\System" /SQLSYSADMINACCOUNTS="NT AUTHORITY\System" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /IACCEPTSQLSERVERLICENSETERMS


I am using a script that calls the above command to install an instance of SQL Server Express. Is there a way to get it to set the SA password as well?
0
Comment
Question by:Rob Sanders
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 39951807
I believe you need these 2 switches also...

SECURITYMODE=SQL
SAPWD="enter a strong password here"
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39951813
You should be able to set it using the "SAPWD" switch.
0
 
LVL 1

Author Comment

by:Rob Sanders
ID: 39951816
Thanks for the fast responses. I will give those a try.
0
 
LVL 1

Author Closing Comment

by:Rob Sanders
ID: 39951897
That did the trick. Thanks.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about achieving the basic levels of HRIS security in the workplace.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question