Friday 19 April 2013

Unlock login without changing the password in SQL Server

When the “Enforce Password Policy” in the General page of SQL login properties is checked…

…depending on your security policy in Windows, the login will be locked out after defined number of unsuccessful login attempts:

There will be an error message when the login is locked out:

On the Status page of login properties “Login is locked out” field will be checked if the login is locked:

When you try to uncheck the “Login is locked out” field there may be an error when you click OK:

To unlock the login without resetting the login password, first uncheck the “Enforce Password Policy” in the General page of SQL login properties and click OK:

And then check the “Enforce Password Policy” in the General page of SQL login properties again, and the login will be unlocked without changing the password.

No comments:

Post a Comment