Sometime you may get the below error while executing some script:
Msg 15099, Level 16, State 1, Line 1
The MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF.
To solve this error, Add CHECK_EXPIRATION=ON TO the script or remove MUST_CHANGE from the script.
CREATE LOGIN [username] WITH PASSWORD=N'pa@Ssword' MUST_CHANGE, CHECK_EXPIRATION=ON
Msg 15099, Level 16, State 1, Line 1
The MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF.
CREATE LOGIN [username] WITH PASSWORD=N'pa@Ssword' MUST_CHANGE, CHECK_EXPIRATION=ON
Me funciono elimine MUST_CHANGE, gracias por el aporte
ReplyDelete