Solved

Set SA password while using script to install SQL Express

Posted on 2014-03-24
4
356 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
Comment Utility
I believe you need these 2 switches also...

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

Expert Comment

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

Author Comment

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

Author Closing Comment

by:Rob Sanders
Comment Utility
That did the trick. Thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes some very basic things about SQL Server filegroups.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now