Msg 15099 Level 16 – SQLSERVERLEARNER https://sqlserverlearner.com LEARN SQL SERVER ONLINE Mon, 04 Jun 2012 09:30:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Msg 15099 Level 16 State 1 Line 1 The MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF. https://sqlserverlearner.com/2012/06/04/msg-15099-level-16-state-1-line-1-the-must_change-option-cannot-be-used-when-check_expiration-is-off/ https://sqlserverlearner.com/2012/06/04/msg-15099-level-16-state-1-line-1-the-must_change-option-cannot-be-used-when-check_expiration-is-off/#respond Mon, 04 Jun 2012 09:30:41 +0000 https://sqlserverlearner.azurewebsites.net/2012/06/04/msg-15099-level-16-state-1-line-1-the-must_change-option-cannot-be-used-when-check_expiration-is-off/ Error Message:

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

Fix/resolution:
Add CHECK_EXPIRATION=ON TO the script or remove MUST_CHANGE from the script
Before:
[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE
[/sql]

After:[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE, CHECK_EXPIRATION=ON
[/sql]

OR

[sql]
CREATE LOGIN [username] WITH PASSWORD=N’pa@Ssword’ MUST_CHANGE
[/sql]

]]>
https://sqlserverlearner.com/2012/06/04/msg-15099-level-16-state-1-line-1-the-must_change-option-cannot-be-used-when-check_expiration-is-off/feed/ 0