About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
After a restart, SQL Server or SQL Server Agent does not come up. On a server that is not in a domain, the start attempt fails with error 1068. On a domain member, the SQL Server service fails during boot and Event Viewer records event 7038. Microsoft's page ties both to the same arrangement: the services are set to log on with a domain account, and domain authentication is not available at the moment they start.
Nothing before the Fix section changes a service.
What the error means
Microsoft's page separates three symptoms.
Issues 1 and 2, standalone server. The MSSQLSERVER service, the SQLServerAgent service, or both fail to start with:
An error 1068 - (The dependency service or group failed to start.) occurred while performing this service operation on the MSSQLServer Service.
or the same text naming the SQLServerAgent Service. Microsoft says this occurs when the server is in a workgroup and not part of a domain, and both services are set to use a domain account for startup.
Issue 3, domain member server. The MSSQLSERVER service might not start during server start, and Event Viewer shows event ID 7038:
The MSSQLSERVER service was unable to log on as domain\mssqlsvc with the currently configured password due to the following error: Source: NetLogon Description: There are currently no logon servers available to service the logon request. The MSSQLSERVER service terminated unexpectedly.
Microsoft says this occurs when the server is part of a domain, both services use a domain account for startup, and the startup mode of both is Automatic.
The causes are separate. For issues 1 and 2, the server is a standalone computer and the NetLogon service doesn't start on it, so no domain-wide logon authentications are possible. For issue 3, the SQL Server services try to start before the NetLogon service starts.
Likely causes
| Situation | Message | Cause on Microsoft's page |
|---|---|---|
| Workgroup server, domain account for the services | Error 1068 for MSSQLSERVER, SQLServerAgent or both | NetLogon doesn't start on a standalone computer, so domain logon is impossible |
| Domain member, both services Automatic, domain account | Event 7038, no logon servers available | SQL Server starts before the NetLogon service starts |
| Domain member and delayed start does not help | Event 7038 persists | The page names no separate cause; it adds three service dependencies |
Microsoft gives no counts for these situations. The page is not tied to a SQL Server version.
Prove the cause before changing anything
All of these only read. Run them in an elevated command prompt (cmd), not PowerShell, because named-instance service names contain a dollar sign.
- Confirm whether the server is in a domain or a workgroup, from System properties.
- Read the service configuration, including the account the service logs on as and its dependencies:
sc.exe qc MSSQLSERVER
sc.exe qc SQLSERVERAGENT
The example assumes a default instance named MSSQLSERVER. For a named instance, Microsoft says to use MSSQL$INSTANCENAME. Look at the account line and the dependency list, and note the start type.
- In Event Viewer, look for event 7038 around the boot time and read the error text. "There are currently no logon servers available to service the logon request" with source NetLogon is Microsoft's description of issue 3.
- For a workgroup server, check that the services are set to a domain account. If the account is a local one, error 1068 has another cause that Microsoft's page does not cover.
Example (illustrative): at contoso.com.au a test server sql-dev02 was moved out of the domain to a workgroup after a project. The SQL services were never changed from CONTOSO\svc-sql. On the next restart both fail with error 1068. The server is a workgroup computer and the services use a domain account, which is issues 1 and 2.
Fix
Choose the section that matches the proof.
Error 1068 on a standalone server: change the startup account
Microsoft's fix is to change the startup account of both the MSSQLSERVER and SQLServerAgent services to the Local System account in SQL Server Configuration Manager, restart the server, and, on a standalone computer, set the NetLogon service to manual startup.
Save the current configuration first. This writes both outputs to a file, with a path you choose:
sc.exe qc MSSQLSERVER > <path>\sql-before.txt
sc.exe qc SQLSERVERAGENT >> <path>\sql-before.txt
Also open the Services console (services.msc) and write down the current Startup type of the NetLogon service, because the last step changes it.
Risk: The next steps change the account that SQL Server and SQL Server Agent run as to Local System, restart the server, and set the NetLogon service to manual startup. Anything that relies on the old domain account, such as access to a network share for backups, will no longer use that identity. Microsoft's page does not list what depends on the account, so check that before you change it.
- In SQL Server Configuration Manager, change the startup account of both services to the Local System account.
- Restart the server.
- On a standalone computer, set the NetLogon service to manual startup.
To undo it: in SQL Server Configuration Manager, set each service back to the account recorded in your saved output, with its password, and restart the services; then set the NetLogon service back to the Startup type you wrote down. Microsoft's page does not describe a back-out, so test the restored account before you rely on it.
Event 7038 on a domain member: delay the start
Microsoft lists several options for issue 3: configure delayed start, configure retry, change the Duplicate Address Detection value (the -DadTransmits setting of Set-NetIPInterface, to 1 for all network interfaces), or change the service recovery options so that the failure action is Restart the service. Delayed start lets other services such as NetLogon complete first.
Microsoft's SQL Server page points to its page on automatically starting services for delayed start. The command below is built from the sc.exe config reference, which shows delayed-auto as a start type that starts a service automatically a short time after other auto services are started; it is not a command printed on the SQL Server page.
Save the current start type first. The start type in this output is the record:
sc.exe qc MSSQLSERVER
Risk: The next command changes SQL Server from starting with the other automatic services to starting after them. Anything that expects SQL Server to be up immediately at boot, including other services and scheduled jobs, may start before the database is ready.
sc.exe config MSSQLSERVER start= delayed-auto
Note the space after start=; Microsoft's reference says that without it the operation fails.
To undo it: set the start type back to the value you saw before. If it was automatic, run sc.exe config MSSQLSERVER start= auto; for another value, use the matching start type from the sc.exe config reference.
Event 7038 and delayed start does not help: add dependencies
Microsoft's page says to add three dependencies to the SQL Server service: the IP Helper service (iphlpsvc), the Server service (LanmanServer) and the Network List service (netprofm). Save the current dependencies first. The dependency list in this output is the record:
sc.exe qc MSSQLSERVER
Disruptive step: The next command changes which services must start before SQL Server. If any of the three cannot start, SQL Server will not start either. The change is made in an elevated command prompt, and Microsoft's page does not say whether the command adds to or replaces the existing list, so read the result.
sc.exe config MSSQLSERVER depend= iphlpsvc/LanmanServer/netprofm
Then view the dependencies again and compare with the saved copy:
sc.exe qc MSSQLSERVER
To undo it: run sc.exe config MSSQLSERVER depend= <original list>, using the dependency names from your saved output, separated by forward slashes as the sc.exe reference requires. If the saved output showed no dependencies, Microsoft's pages give no command that clears the list again, so in that case this change has no documented undo; treat it as permanent when you decide.
Confirm the fix
- Both services start after a restart, with no error 1068 and no event 7038 for MSSQLSERVER.
sc.exe qc MSSQLSERVERshows the account, start type and dependencies you intended.- Applications and jobs connect to SQL Server after a restart without a delay-related failure.
- SQL Server Agent jobs run.
What to watch afterwards
- Every restart for a week, as the original fault only shows at boot.
- Event 7038 for other services that log on with a domain account, since the event text names the account and NetLogon.
- Shares and file locations that used the old domain account for access.
- Moves of servers out of or into a domain, which change what is available at boot.
Read next
Related articles you may want next.
- Troubleshooting"Error 1053: The service did not respond to the start or control request in a timely fashion"Windows error 1053: service did not respond in a timely fashion. Prove the cause, then raise ServicesPipeTimeout carefully with a way back.Read article
- Troubleshooting"Error 1069: The service did not start due to a logon failure" after a password changeSQL Server error 1069 logon failure after a password change: read the event text, test the credentials with runas, then update the service's password.Read article
- Backup & RecoverySQL Agent backup job fails with error 15404: could not obtain information about Windows userSQL Agent job fails with error 15404 'Could not obtain information about Windows NT group/user'? Check the job owner, test it, then change it deliberately.Read article
Risks and limits
These steps have not been run or lab-tested.
Microsoft's page does not state a SQL Server version range. It does not say whether depend= adds to or replaces the list, how long delayed start waits, or what depends on the service account. Moving to Local System changes the identity SQL Server uses to reach other machines. The page's related links lead to Microsoft articles on SQL Server startup errors, error 1069, SQL Server Agent shutting down unexpectedly, SQL Server services using domain credentials, and selecting an account for the SQL Server Agent service.
Sources
- SQL Server and SQL Server Agent services fail to start on a standalone server or domain member server — Microsoft Learn, page dated 2026-11-25, accessed 1 December 2026
- sc.exe config — Microsoft Learn, page dated 2023-02-03, accessed 1 December 2026
This article was originally published on .