2012-08-30 65 views
10

我试图连接到SQL Server 2008,但我得到这个错误:无法连接到SQL Server - 登录失败

Login failed for user "xyz" because the account is currently locked out.The system administrator can unlock it. (Microsoft SQL Server, Error 18486)

请检查图像。

enter image description here

回答

24

SQL server has local password policies. If policy is enabled which locks down the account after X number of failed attempts then the account is automatically locked down.This error with 'sa' account is very common. sa is default administartor login available with SQL server. So there are chances that an ousider has tried to bruteforce your system. (This can cause even if a legitimate tries to access the account with wrong password.Sometimes a user would have changed the password without informing others.)

如果您知道其他管理员帐户,则可以使用此查询解锁,

ALTER LOGIN sa WITH PASSWORD='password' UNLOCK 

Read more on this link.

+0

感谢您的回复。但是现在我什么都没做。 20分钟后,我试图再次登录,并能够连接Sql服务器。这只是令人惊讶的如何再次连接。 – Vinod

+0

^^^我的人生故事就在那里。 – CptSupermrkt

+2

它连接导致锁定自动在指定的时间段后被移除 – frostymarvelous

0

我已经给了很多失败的尝试DB远程并且一个帐户被锁定。

“ALTER LOGIN SA WITH PASSWORD = '密码' UNLOCK” 这

2

有解锁的另一种方式。使用Windows身份验证连接到SQL Server,但确保窗口用户是SQL中的管理员。那么可以转到安全文件夹,选择锁定的用户,转到属性,然后转到状态。需要取消选中“登录被锁定”并且帐户已解锁。

相关问题