The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server,错误: 15128)
2015-10-27 09:39
961 查看
记录下
The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server, Error: 15128)
Problem: Recently one of my user reported the issue that, He is getting password change message while login to SQL Server. But he does not want to change the password as he has already configured at the many places. While turning off the Password Expiration message, I got the below error.
The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server, Error: 15128)
Solution:
To fix the issue you MUST have to change the password first without changing in password policy options. The good thing it that you can change the password to be the same as the existing one. -:)
But still you have to change the password -:) what a logic!!! You can do it from SSMS GUI as well, but I always prefer to use the scripts as it is giving me flexibility of customization.
That was the another reason I am in the support of open source software you have flexibility to add your ideas. Let’s go to fix the issue.
In the below step I am giving the same password, to fix “User Must Change Password” flag.
USE Master
GO
ALTER LOGIN [Login Name] WITH PASSWORD = 'Same Password'
GO
Now let’s turn off the passowrd policy.
ALTER LOGIN [Login Name] WITH
CHECK_POLICY = OFF,
CHECK_EXPIRATION = OFF;
The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server, Error: 15128)
Problem: Recently one of my user reported the issue that, He is getting password change message while login to SQL Server. But he does not want to change the password as he has already configured at the many places. While turning off the Password Expiration message, I got the below error.
The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON. (Microsoft SQL Server, Error: 15128)
Solution:
To fix the issue you MUST have to change the password first without changing in password policy options. The good thing it that you can change the password to be the same as the existing one. -:)
But still you have to change the password -:) what a logic!!! You can do it from SSMS GUI as well, but I always prefer to use the scripts as it is giving me flexibility of customization.
That was the another reason I am in the support of open source software you have flexibility to add your ideas. Let’s go to fix the issue.
In the below step I am giving the same password, to fix “User Must Change Password” flag.
USE Master
GO
ALTER LOGIN [Login Name] WITH PASSWORD = 'Same Password'
GO
Now let’s turn off the passowrd policy.
ALTER LOGIN [Login Name] WITH
CHECK_POLICY = OFF,
CHECK_EXPIRATION = OFF;
相关文章推荐
- PostgreSQL数据库 OLTP高并发请求性能优化
- PLSQL Developer报“动态执行表不可访问,本会话的自动统计被禁止”的解决方案
- System.DllNotFoundException Unable to load DLL SQLite.Interop.dll解决办法
- MySQL server has gone away
- PLSQL Developer报“动态执行表不可访问,本会话的自动统计被禁止”的解决方案
- Sqoop导mysql库到Hive中com.mysql.jdbc.RowDataDynamic错误解决
- mysql使用load命令 报错:ERROR 13 (HY000): Can't get stat of '/root/mysql/mysql/data/datatotestproc' (Errco
- mybatis sqlmap中property遇到的问题
- 使用 Oracle GoldenGate 在 Microsoft SQL Server 和 Oracle Database 之间复制事务
- MySQL server has gone away
- mysql 第23章 监控
- 32位的PL/SQL developer如何连接64位的ORACLE 11g
- Oracle数据库备份、恢复 - 使用PL/SQL Developer 导入、导出Oracle数据库
- 理解MySQL——架构与概念
- PostgreSQL数据库 OLTP高并发请求性能优化
- MySQL主从架构配置案例
- PowerDesigner16建表在SQL SERVER 2008报 对象名 'sysproperties' 无效。
- go mysql
- adb文件copy及sqlite3:not found篇
- LR通过snmp监控linux下的mysql