Solved

Set SA password while using script to install SQL Express

Posted on 2014-03-24
4
357 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now