简体   繁体   中英

SQL Server required change password

How to block SQL Server forcing password change and sudden deactivation of old password? My application connects to the database and suddenly, after about 2/4 weeks, it loses connection with the database, and when I run SSMS and logging in, autherication: SQL Server Authentication requires set a new password.

ALTER the LOGIN to have CHECK_EXPIRATION set to OFF :

ALTER LOGIN YourLogin WITH CHECK_EXPIRATION = OFF;

This is (at least for current versions) by default set to OFF , which likely means that the password is expiring by design though. If so I would suggest double checking before that not expiring the password is now intended as ON would needed to have been explicitly turned ON previously.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM