To change the SQL Server service account, open SQL Server Configuration Manager, select the service (Database Engine, Agent, or another), switch to the Log On tab, enter the new Windows account and password, apply the change, then restart the service. Before that, grant the new account the required rights: a logon to the server, the "Log on as a service" policy, and—critically—the SQL Server per-service SID permissions under NT SERVICE\MSSQLSERVER (or the named instance equivalent), which is the step most people miss. The change is only safe once you've verified the new account has read/write access to data, log, and backup folders and can start the service cleanly.
The rest of this guide walks through prerequisites, the ordered steps, the permission layers that trip people up, rollback, and the specific failures you'll see when something is missing.
What "service account" and "permissions" actually mean here
People often conflate three separate things, and fixing the wrong one causes confusing errors:
1: The Windows service logon account. This is the identity the sqlservr.exe process runs under. It's set in SQL Server Configuration Manager (or the Services console) and stored as the service's logon credentials. 2: The SQL Server permission model tied to that account. Internally, SQL Server 2008 and later create a per-service security identifier (SID) such as NT SERVICE\MSSQLSERVER for the default instance or NT SERVICE\MSSQL$INSTANCENAME for a named instance. The instance's files, registry keys, and certain resources are ACLed to that SID, not to the literal Windows account. SQL Server also adds the service SID as a login inside the instance with sysadmin rights. That's why you can change the Windows account without breaking SQL logins—but only if you keep the service SID's permissions intact. 3: The SQL logins and server roles. A Windows login mapped to the old service account, or fixed server roles granted to it, are separate objects you may need to clean up. This matters most when the account was used for more than just running the service—for example, as the Agent proxy or a job owner.
Understanding the split explains the common surprise: changing the logon account "works," but the instance won't start because the new account can't read a file the old SID owned, or SQL Agent jobs suddenly fail because a proxy referenced the old login.
Prerequisites before you touch anything
Do these first. Each one prevents a specific failure.
Choose the right replacement. For a standalone instance, a managed service account (MSA or gMSA) or the built-in NT AUTHORITY\NETWORKSERVICE/NT AUTHORITY\LOCALSYSTEM are common low-maintenance choices, but LocalSystem is over-privileged and NetworkService has limited network identity. A domain account is typical when the instance needs network resources (backups to a share, linked servers, replication). Confirm the account is a dedicated service account, not a person's login. Get the password and confirm it won't expire mid-run. A domain policy that forces a password change on a service account breaks the instance at the next policy refresh. Check with your directory administrator. Verify the new account can read the instance's folders now. The default data, log, and backup paths are under the instance directory; you need read/write (and for some operations, modify) there. Note the exact folders from the instance's properties before changing anything. Record the current state. Capture the existing service account, its SQL logins and role memberships, and any Agent proxies or job owners that reference it. A quick query against sys.server_principals and sysproxies, or just screenshots, gives you a rollback reference. Schedule a maintenance window. Restarting the Database Engine drops connections. Do this when a brief outage is acceptable, or plan a failover if the instance is in an availability group. Back up. A full backup plus the system databases (especially master, which stores logins) means you can recover from a botched login cleanup.
Step-by-step: changing the Database Engine service account
The same pattern applies to SQL Server Agent, Full-Text, and other SQL services, but do the Database Engine first and verify before moving on.
1: Open SQL Server Configuration Manager on the machine hosting the instance. Use the version-matched tool (it ships with the SQL Server version); the Services console works too but gives less visibility into dependent services.
2: Select "SQL Server Services" in the left pane. You'll see each service with its current logon account in the Log On As column.
3: Right-click the service (for example, "SQL Server (MSSQLSERVER)" for the default instance or "SQL Server (INSTANCENAME)" for a named one) and choose Properties.
4: Go to the Log On tab. Choose "This account," then type the new account in DOMAIN\account form and enter the password twice. For a managed service account, leave the password blank—those accounts don't use one.
5: Click Apply. Configuration Manager will attempt to grant the new account the "Log on as a service" right and set folder permissions. If it can't (for example, the account can't be validated or a group policy blocks the right), you'll get an error here—resolve it before proceeding.
6: Restart the service (right-click, Restart). Watch for a clean start. If it fails, see the failure section below before doing anything else.
7: Verify the logon. In the Services console or Configuration Manager, confirm the Log On As column shows the new account. Then connect with SSMS and run SELECT servicename, service_account FROM sys.dm_server_services; (requires appropriate permissions) to confirm the instance reports the new identity.
8: Check the service SID login still exists inside SQL Server: SELECT name, type_desc FROM sys.server_principals WHERE name LIKE 'NT SERVICE%';. It should still be present with sysadmin. If someone removed it, the instance may still run but lose the ability to manage itself in ways that cause odd failures—reattach it deliberately rather than by accident.
Success check: the service is running, you can connect, sys.dm_server_services shows the new account, and a test backup to the configured backup folder succeeds. That last one confirms file permissions, not just process startup.
Granting the permissions the new account actually needs
Configuration Manager handles the two big Windows-side pieces automatically in most cases, but verify each:
"Log on as a service" right. Best managed through a Group Policy Object (Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment → "Log on as a service") applied to the server, especially in domains where local policy gets overwritten. If the right is missing, the service fails with error 1069 ("The service did not start due to a logon failure"). NTFS permissions on data, log, backup, and any custom directories. The new account needs read/write where SQL Server writes files. Grant these on the folders, and be aware that a backup share needs the account's network identity—NetworkService authenticates to the network as the machine account, which may not be granted on the share. Registry and program-folder ACLs. SQL Server's setup grants these to the service SID; because the SID persists across account changes, you usually don't need to touch them. If you rebuild the instance or clone it, that's when these matter.
On the SQL Server side:
The service SID login is your safety net. Leave NT SERVICE\MSSQLSERVER (or NT SERVICE\MSSQL$INSTANCENAME) in place with sysadmin. Do not "clean it up" thinking it's leftover from the old account—it's what allows the service to function. Add a Windows login only if the account needs SQL-level access beyond running the service—for example, if it runs Agent jobs that connect back to the instance, or if it's used as a credential for a job step. Grant the minimum role (often just public plus specific database roles), not sysadmin, unless the workload genuinely requires it. A service account with sysadmin is a lateral-movement risk if the account is compromised. Update job owners and proxies. SQL Agent jobs owned by the old login will fail after the login is dropped; reassign ownership (sp_update_job @owner_login_name = ...) or use a proxy with a credential for the new identity. Proxies referencing a deleted login break job steps.
Common failure modes and how to read them
| Symptom | Likely cause | Reversible first check |
|---|---|---|
| Service won't start, error 1069 | Missing "Log on as a service" right or bad password | Re-enter credentials; check local/domain policy for the right |
| Starts, then stops; error log shows access denied to a file | NTFS permission missing on data/log/backup path | Grant the new account modify on the specific folder named in the error |
| Starts fine, but Agent jobs fail | Job owner or proxy referenced the old login | Reassign job ownership or fix the proxy |
| Instance starts but some admin operations fail | Service SID login removed or stripped of sysadmin | Re-add NT SERVICE... as a login with sysadmin |
| Backup to a share fails | New account's network identity isn't authorized on the share | Grant the account (or machine account) on the share, or use a domain account |
Distinguish logon failures (the process never starts) from permission failures (the process starts but can't do something). The Windows Event Log and the SQL Server error log name the account and the resource in both cases, which usually points straight at the fix.
Stop condition: if you're changing the account on a clustered instance, an availability group replica, or a system with replication, log shipping, or linked servers, the change has dependencies across nodes and SQL objects. If you can't fully map those, pause and involve the DBA or the team that owns the cluster—restarting the wrong node or orphaning a replication agent's identity can cause outages that are much harder to unwind than the original change.
Rolling back
If the new account causes problems, rollback is the reverse: reopen the service's Log On tab, switch back to the previous account (or LocalSystem/NetworkService), apply, restart. Because you captured the old account and its SQL logins first, you can restore any job owners and proxies you changed. If you already dropped logins, master backups taken beforehand let you recover them; if not, recreate them and re-grant roles using your notes. The service SID login, if you left it untouched, needs no rollback—another reason to leave it alone.
A note on timing and versions
This procedure reflects the long-standing SQL Server Configuration Manager workflow and per-service SID model that has been stable from SQL Server 2008 through current releases; the reference date here is November 13, 2026, and nothing in this process depends on a specific build beyond that model. Two things do change: account types available to you (managed service accounts require the right domain functional level), and any organization-specific Group Policy that overrides the "Log on as a service" right. Verify those against your environment rather than assuming defaults. If you're scripting the change with PowerShell's Set-Service or sc.exe config, the same permission prerequisites apply—the tooling doesn't grant the SID or NTFS rights for you the way Configuration Manager usually does, so check them manually.