When MUST_CHANGE is ON, the CHECK_POLICY and CHECK_EXPIRATION options cannot be set to OFF or checkchange

Source: Internet
Author: User
Tags microsoft sql server management studio

When MUST_CHANGE is ON, the CHECK_POLICY and CHECK_EXPIRATION options cannot be set to OFF or checkchange

In fact, in the following situations, 2005 and 2008 are prone to this problem.

When creating an account in SQL Server 2008, select "Enforce Password Policy", for example:


After the creation, I do not want to use the policy. I canceled "force password policy implementation", for example:

Click OK. An error occurs, such:

The details are as follows:

Title: Microsoft SQL Server Management Studio
------------------------------

Failed to log on to "test1. (Microsoft. SqlServer. Smo)

Click: http://go.microsoft.com/fwlink? For help information? ProdName = Microsoft + SQL + Server & ProdVer = 9.00.3042.00 & EvtSrc = Microsoft. SqlServer. Management. Smo. ExceptionTemplates. FailedOperationExceptionText & EvtID = change + Login & LinkId = 20476

------------------------------
Other information:

An exception occurred when executing a Transact-SQL statement or batch processing. (Microsoft. SqlServer. ConnectionInfo)

------------------------------

When MUST_CHANGE is ON, the CHECK_POLICY and CHECK_EXPIRATION options cannot be set to OFF ). (Microsoft SQL Server, error: 15128)

Click: http://go.microsoft.com/fwlink? For help information? ProdName = Microsoft + SQL + Server & ProdVer = 09.00.3042 & EvtSrc = MSSQLServer & EvtID = 15128 & LinkId = 20476

========================================================== ====================================

I have been studying for half a day and I have to use it

Alter login Name with password = 'new password ';

Modify the password of this account first!

This is to change the login password as a sa. I feel that this option allows the login user to change the password after login. After I try it, I cannot log on at all, that is, I am prompted to change the password.

The Windows Server account can log on and change the password. How can I set the password in SQL Server?

In fact, a simple method is:

Delete and recreate a user"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.