Set SA password while using script to install SQL Express

Posted on 2014-03-24
Last Modified: 2014-03-24

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?
Question by:Rob Sanders
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
  • 2
LVL 29

Accepted Solution

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

SAPWD="enter a strong password here"
LVL 52

Expert Comment

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

Author Comment

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

Author Closing Comment

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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TNS timeout - "Error-2147467259 ORA-12170: TNS Connect timeout occurred” 10 81
Email question 19 92
How to get data off Lotus Notes server 4 72
Reoccurring Access Query 24 47
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.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

734 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