Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

ALTER LOGIN masteruserid1 DISABLE
GO

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
add comment

2 Answers 2

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
add comment

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. https://forums.aws.amazon.com/message.jspa?messageID=402351

share|improve this answer
add comment

Your Answer

 
discard

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.