The account is currently locked, so the user sa login failed. The system administrator can not unlock the account

Run the program throws an exception: The provider failed on Open basis, details: This account is currently locked, so the user sa login failed. The system administrator can not unlock the account.

1. Consider the connection string is normal login database, found that reported the same mistakes login => Questions database

2. Baidu search: Reference blog: http: //blog.csdn.net/chengmodelong/article/details/43600973

  If a short time non-stop connection, SQL SERVER will be mistaken for this attack, this account will be locked.

 
ALTER LOGIN sa ENABLE ;
GO
ALTER LOGIN sa WITH PASSWORD = 'password' unlock, check_policy = off,
check_expiration = off ;
GO

 

Where sa is the account name, password is the corresponding password

After executing this sql statement you can log in

Repeatedly checks whether the connection to the database 4. program

Guess you like

Origin www.cnblogs.com/delphixe/p/12364868.html