Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set SA password while using script to install SQL Express

Posted on 2014-03-24
4
Medium Priority
?
374 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

877 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