How do i Set Password Expiration days for a Sql Login

  • Hi,

    I will be creating a Login in code while Installation. I have a requirement now that Login should have Password expiration policy. How do i set this? Please help.

    Thanks

    Chelladurai

  • You can add this option while creating the Login. CHECK_EXPIRATION ={ ON }

    Keep in mind that it is applicable only to SQL Logins and on Windows Server 2003 and later.

    -Roy

  • Hi,

    Thanks for your response. How do i set the Interval for Password Expiration.

  • SQL Server uses the Windows password policy mechanism. So, whatever is defined on your server (Windows 2003 or higher) is what will be used.

    Jeffrey Williams
    “We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”

    ― Charles R. Swindoll

    How to post questions to get better answers faster
    Managing Transaction Logs

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply