记录下

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;

最新文章

  1. Python入门5
  2. solr的suggest模块
  3. C#实现WebService服务 项目完整总结
  4. 深入了解css的行高Line Height属性
  5. 使用Cloudera部署,管理Hadoop集群
  6. Linux初识(转)
  7. [转]如何下载tizen源码(图文教程)?
  8. android application类的用法
  9. git 彩色显示当前branch
  10. CSS小注意(初级)
  11. 蜗牛—JSP学习之JavaBean初识
  12. effective C++ 读后笔记
  13. css中的字体样式及元素样式
  14. HDU 4333 Revolving Digits 扩张KMP
  15. 使用Visifire+ArcGIS API for Silverlight实现Graphic信息的动态图表显示
  16. [转载] 详述三种现代JVM语言--Groovy,Scala和Clojure
  17. 小白学习Python之路---re模块学习和挑战练习
  18. C# 堆栈(Stack)和队列(Queue)
  19. web@css样式进阶--图形字体、动画、显隐....
  20. Runtime之成员变量&属性&关联对象

热门文章

  1. Django 之 序列化
  2. python中os模块函数方法详解最全最新
  3. 我的Java开发学习之旅------>二进制、八进制、十进制、十六进制之间转换
  4. 给俺的 CSDN 博客加背景音乐 - 高大尚的《心经》背景音乐
  5. centos7 yum安装MongoDB
  6. c#下载文件,最简单代码
  7. ACM解题之素矩阵
  8. Eclipse Find/Replace
  9. Python之------初识面向对象(Day22)
  10. width