How to unlock an account after the account is locked

Source: Internet
Author: User

Recently encountered problems are quite interesting. First, I haven't started the test database for a long time. Today I opened the database and encountered the following error during the test using the service program:

 
 
  1. Message: System.Data.SqlClient.SqlException: Login failed for user 'dcp_prod'.  
  2. Reason: The password of the account has expired.  

Obviously, this is because the password is invalid. The account dcp_prod uses the password invalidation policy to open the database and view the attributes of this account, the Enforce password policy and Enforce password expiration attributes are selected.

 

Now you only need to reset the password. However, an error is prompted as follows:

 
 
  1. System. Data. SqlClient. SqlException:
  2. Login failed for user 'dcp _ prod' because the account is
  3. Currently locked out.
  4. The system administrator can unlock it.
  5. The account is currently locked. The system administrator can unlock it .)

What is the reason? The locked out is locked, and then the administrator stops to unlock it. It literally means to follow the prompt area to open the account attributes again.

 

(Here is the status after the response is normal, the default is unavailable in gray)

Click the Status label. The Login is locked out attribute is selected. deselect the attribute and click OK to return to the program. It's strange that the above locked out prompt is used to open the attribute to check. This attribute is selected again. This was the case several times in a row and began to wonder. Later, I checked it online and said that other users tried to connect to the database. I suddenly realized that the service program was competing with me for a database. The service program connects to the database every three seconds for corresponding operations. If you try to change the password, the account will be locked. In my Administrator tool-> service, I shut down the program, changed the password, and re-opened the program. This error disappears.

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.