Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpiring an expired SQL Server Login password (Password cannot be changed)

I have a SQL server Login which password has recently expired. Unfortunately this password is necessary as we use it across Dev Machines for application testing purposes.

I CAN'T change this password, but I need to unexpire it.

The error I am getting is : Error 28000 Login failed for user 'Username'. Reason: The password of the account has expired.

I am using SQL Server 2014. The 'Enforce Password Policy' box is not ticked.

like image 999
Bradley Morris Avatar asked Jun 01 '15 15:06

Bradley Morris


2 Answers

Right click 'Username' and go to Properties

You can find 'Enforce password expiration' on login properties window, which needs to be unchecked.

enter image description here

like image 132
Lokesh kumar Chippada Avatar answered Oct 24 '22 11:10

Lokesh kumar Chippada


Log in as a system administrator. Change the password to something else. Make sure enforce password policy is off and then change the password back to the original password.

like image 29
Brian Pressler Avatar answered Oct 24 '22 09:10

Brian Pressler