Why Services Need Restarting
SQL Server services occasionally stop responding to client connections, hang during maintenance, or fail to apply configuration changes until the service is cycled. Restarting the service flushes stale memory, reloads configuration files, and re-establishes network listeners. Knowing the correct method prevents data corruption and unplanned downtime.
More from this site
Keep reading the latest coverage
Pre-Restart Checks
Before restarting, verify that active transactions are committed or rolled back. Check for long-running queries using sp_who2 or the Activity Monitor. If the instance is a replication distributor or hosts linked-server calls, coordinate with downstream consumers. Back up critical databases if the restart follows a configuration change that could affect recovery.
Identify Active Sessions
- Run SELECT * FROM sys.dm_exec_sessions WHERE status = 'running';
- Check for open transactions with DBCC OPENTRAN
- Notify users of the planned restart window
Methods to Restart SQL Services
Using SQL Server Configuration Manager
Open Configuration Manager, expand SQL Server Services, right-click the target instance, and choose Restart. This GUI method handles dependencies and logs the action in the Windows Event Log.
Using Windows Services (services.msc)
Press Win+R, type services.msc, locate SQL Server (MSSQLSERVER) or the named instance, right-click, and select Restart. This is useful when Configuration Manager is unavailable.
Using Command Line
Open an elevated command prompt and run net stop MSSQLSERVER && net start MSSQLSERVER for the default instance. For a named instance, replace the service name, for example net stop MSSQL$INSTANCENAME && net start MSSQL$INSTANCENAME.
Using PowerShell
Use Restart-Service -Name 'MSSQLSERVER' -Force. Add the -PassThru parameter to confirm the service state after the restart completes.
Verifying the Restart
After the service starts, confirm the error log shows a clean startup. Check SELECT SERVERPROPERTY('Status') — a return value of 1 means the server is running. Test connectivity with a simple query such as SELECT @@VERSION. Monitor the SQL Server error log for messages indicating recovery or recovery failures.
When Restart Is Not Enough
If the service crashes immediately after starting, check the Windows Application log for access violations or startup parameter errors. A corrupted transaction log or missing master database file will prevent a successful restart. In these cases, start in single-user mode with the -m flag and perform emergency repairs before cycling the service normally.
Automation and Best Practices
Schedule restarts during maintenance windows using SQL Server Agent jobs or Windows Task Scheduler. Avoid restarting during peak transaction periods. Document the restart procedure and store it with the change-management records so that the next cycle is predictable and traceable.