Auto Restart SQL Server Agent
Applies to: SQL Server (all supported versions) Azure SQL Managed Instance
On Azure SQL Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Managed Instance T-SQL differences from SQL Server for details.
This topic describes how to configure Microsoft SQL Server Agent to automatically restart if it should stop unexpectedly.
Before You Begin
Limitations and Restrictions
Object Explorer only displays the SQL Server Agent node if you have permission to use it.
To perform its functions, SQL Server Agent must be configured to use the credentials of an account that is a member of the sysadmin fixed server role in SQL Server. The account must have the following Windows permissions:
Log on as a service (SeServiceLogonRight)
Replace a process-level token (SeAssignPrimaryTokenPrivilege)
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process (SeIncreaseQuotaPrivilege)
For Auto Restart to function properly, the account running the SQL Server Agent service must be a local administrator on the server.
For more information about the Windows permissions required for the SQL Server Agent service account, see Select an Account for the SQL Server Agent Service and Setting Up Windows Service Accounts.
Using SQL Server Management Studio
To configure SQL Server Agent to automatically restart
In Object Explorer, click the plus sign to expand the server where you want to configure SQL Server Agent to automatically restart.
Right-click SQL Server Agent, and then click Properties.
On the General page, check Auto restart SQL Server Agent if it stops unexpectedly.
Submit and view feedback for