背景:
新建了用户,没有取消掉强制密码策略
修改掉策略报错
错误:
The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_CHANGE is ON.
使用代码修改:
USE Master
GO
ALTER LOGIN [somelogin] WITH PASSWORD = ‘samepassword’
GO
ALTER LOGIN [somelogin] WITH
CHECK_POLICY = OFF,
CHECK_EXPIRATION = OFF;
本文转自 Fanr_Zh 博客园博客,原文链接:/Amaranthus/p/4118187.html,如需转载请自行联系原作者
如果觉得《sql server密码过期 通过SSMS修改策略报错》对你有帮助,请点赞、收藏,并留下你的观点哦!