Sqlserver-dba.com

Account Locked out

One of the application owners sent me a message the other day: Login failed for user ‘sa’ because the account is currently locked out. The system administrator can unlock it.

The following code will solve the issue

--------------------CODE START----------------------------------

use master

ALTER LOGIN sa WITH PASSWORD = 'password' UNLOCK

-----------CODE END-------------------------

Source:Jack Vamvas (http://www.sqlserver-dba.com)
Author: Jack Vamvas (http://www.sqlserver-dba.com)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact