Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With a SQL Server instance on Amazon RDS it is possible to do the following to your master user:


If this command is executed while logged in as the that master user through SSMS, every other command will fail, as the account has now been disabled.

How can this be re-enabled?

share|improve this question
up vote 0 down vote accepted

You need to start SQL server in single user mode, same as if you locked out or disabled your SA account on a non-cloud SQL server.

(You use the -m startup switch, and a computer administrator can connect to SQL server as an SA and, for example, enable the SA account, create a new SA user, reset the SA password, etc.)

So, you'd stop all the SQL services, then run sqlservr -m from cmd and be able to connect using an account that's in the administrators group on the server.

share|improve this answer

This is the same issue if you did it on a normal instance of SQL - you need to enable the user using a privileged account. I am guessing the support guys at amazon could do something for you if you don't have a 2nd account.

There is a thread on the amazon site from someone who has done the same thing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.