天天看點

sqlServer sa賬号被鎖定

alter login sa with password = '123'

 unlock, check_policy = off, check_expiration = off

   一切搞定。。

1、如果短時間内不停連接配接,就會被sql server誤認為是這是攻擊,會将此賬号

鎖定。

要用windows方式登入,在查詢分析器裡輸入:

alter login sa enable ;

go

alter login sa with password = '' unlock, check_policy = off,

check_expiration = off ;

2、這樣就将密碼置空,然後再重新開機登入。

sqlserver自動鎖定sa解決代碼

​​?​​

<col>

1

2

3

4

​<code>​alter​</code>​ ​<code>​login sa enable ; ​</code>​

​<code>​go ​</code>​

​<code>​alter​</code>​ ​<code>​login sa ​</code>​​<code>​with​</code>​ ​<code>​password​</code>​ ​<code>​= ​</code>​​<code>​''​</code>​ ​<code>​unlock, check_policy = ​</code>​​<code>​off​</code>​​<code>​, check_expiration = ​</code>​​<code>​off​</code>​ ​<code>​; ​</code>​

​<code>​go​</code>​

 使用windows建立查詢,運作重新開機sqlservver的服務即可,這樣sa就不會被自動鎖定了~ 

一無所知的世界走下去才會有驚喜 it will be a surprise right know nothing about the world

sqlServer sa賬号被鎖定