Results 1 to 4 of 4

Thread: password Policy

  1. #1
    Join Date
    May 2009
    Posts
    41

    password Policy

    Yesterday somehow the sa account got locked and i ran following statement to unlock it

    alter login sa with check_policy = off
    go
    alter logn sa with check_policy = on
    go

    This worked well.

    This query helped keeping the same password. but i was just wondering what exactly happens internally? how exactly does it work?
    i mean how come just setting password policy on and off unlokced the account and i dint have to even change the password??

    Plz!!!

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    You just told sql to follow domain password policy or not, pwd will not expire if don't follow domain policy.

  3. #3
    Join Date
    May 2009
    Posts
    41
    but according to password policy:

    When CHECK_POLICY is changed to OFF, the following behaviors occur:

    CHECK_EXPIRATION is also set to OFF.

    The password history is cleared.

    The value of lockout_time is reset.

    How come it did not clear my current password along with the history???

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    It disables policy but not reset pwd.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •