sql server service account password changed in active directory, but sql server still running

Buddha Li 25 Reputation points
2023-10-25T03:12:22.5766667+00:00

The sql server service account is a domain user account. After the account password changed in active directory, I found the sql server still running. Why?

SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. RahulRandive 10,501 Reputation points Volunteer Moderator
    2023-10-25T03:18:53.97+00:00

    Hi @Buddha Li

    As per Microsoft document, When you change the service startup account for the Database Engine and SQL Server Agent, the SQL Server service (the Database Engine) must be restarted for the change to take effect.

    User's image

    Now, why does changing the password require a restart? That's because when a process starts, it generates a security token. The token's validity depends on its password. If you change the account password on AD and for the service, the current process still keeps using the old password.

    Reference - https://dba.stackexchange.com/questions/312165/how-does-sql-server-handle-the-password-change-of-the-service-account

    Thank you!


  2. Erland Sommarskog 128.9K Reputation points MVP Volunteer Moderator
    2023-10-25T21:52:41.2533333+00:00

    Plain and simple: the service is already logged in. The password is only needed when you log in. Or as in this case, when the server starts.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.