Msg 15122 Level 16 State 1 Line 1 The CHECK_EXPIRATION option cannot be used when CHECK_POLICY is OFF.

Posted on : 04-06-2012 | By : Devi Prasad | In : Msg 15122

0



Error Message:

Msg 15122, Level 16, State 1, Line 1
The CHECK_EXPIRATION option cannot be used when CHECK_POLICY is OFF.

Fix/Resolution:
Turn On CHECK_POLICY in the script or remove CHECK_EXPIRATION from the script

Before:

CREATE LOGIN [username] WITH PASSWORD=N'pa@Ssword' , CHECK_EXPIRATION=ON, CHECK_POLICY=off

After:

CREATE LOGIN [username] WITH PASSWORD=N'pa@Ssword' , CHECK_EXPIRATION=ON, CHECK_POLICY=ON

OR

CREATE LOGIN [username] WITH PASSWORD=N'pa@Ssword'



Reference : Devi Prasad (sqlserverlearner.com)

Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.



Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.




Your Ad Here


Tags: , , ,