The SQL Server account was locked: "The accounts are currently locked out. The system administrator can unlock it. " The solution (reproduced)

Source: Internet
Author: User

The problems encountered today are more interesting. First of all, the test database has not been opened for a long time, open today, using the service program testing, the following error message appears:
Message:System.Data.SqlClient.SqlException:Login failed for user ' Dcp_prod '. reason:the password of the account has expired.
Obviously, this is because the password is invalid, Dcp_prod This account using a password expiration policy, open the database to view the properties of this account, sure enough, enforce password policy and enforce password Expiration these two properties are selected.

Now you just need to reset the password. But then there was another error that prompted the following:
System.Data.SqlClient.SqlException:Login failed for user ' Dcp_prod ' because the account is
Currently locked out. The system administrator can unlock it.
What is the reason for this, locked out is locked, and then use Administrator station to unlock, literally mean this, follow the cue area to do, open account properties again.

(This is the state after the normal reply, the default is gray is not available)

Click the Status tab, and sure enough, login is locked the Out property is selected, uncheck it, click OK, and go back to the program. Strange, or the above locked out hint, open property view, this property is again selected. It was so many times in a row, and began to wonder. Later on-line search, online said that there are other users trying to connect the database, I suddenly realized that the service program is competing with me for the database. The service program will connect to the database every 3 seconds, doing the corresponding operation, in the middle if you try to change the password, the account will be locked. I administrator tool->service to turn off the program, change the password, reopen the program, the error disappears.

Original link

The SQL Server account was locked: "The accounts are currently locked out. The system administrator can unlock it. " The solution (reproduced)

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.