You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sql/database-engine/startup-shutdown/sql-server-agent-crashes-upon-start.md
+66-53Lines changed: 66 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: SQL Server agent crashes when you try to start it
3
-
description: This article discusses the issues experienced by SQL Server agent service when you create multiple jobs in your SQL Server instance.
3
+
description: Learn how to resolve SQL Server Agent crashes when starting, including troubleshooting multiple job entries and missing ODBC drivers.
4
4
ms.date: 12/03/2025
5
5
ms.reviewer: ramakoni1, v-jayaramanp, v-shaywood
6
6
ms.custom: sap:Startup, shutdown, restart issues (instance or database)
7
7
---
8
8
9
9
# SQL Server agent crashes when you try to start it
10
10
11
-
This article discusses the issues experienced by SQL Server agent service when you create multiple jobs in your SQL Server instance.
11
+
This article provides troubleshooting guidance for an issue where the SQL Server agent service crashes or takes longer than expected when you try to start it.
A SQL Server agent crashes when you try to start it or takes longer than expected to start. Additionally, you might experience one or more of the following scenarios:
19
19
20
20
-**Scenario 1**: The following error message is logged in the System event log:
21
-
> The service didn't respond to the start or control request in a timely fashion.
21
+
> The SQL Server Agent (MSSQLSERVER) service failed to start due to the following error:
22
+
> The service didn't respond to the start or control request in a timely fashion.
22
23
-**Scenario 2**: The status of the agent displays as "Starting" in the Control Panel, and the following error message is logged in the *SQLAgent.log* file:
23
-
> An idle CPU condition has not been defined - OnIdle job schedules will have no effect.
24
-
25
-
Additionally, the following entries might be logged in the *SQLAgent.log* file:
- **Scenario 3**: The database engine server displays a SQL Server process ID (SPID) from the "SQLAgent - Generic Refresher" service. Additionally, the following job is displayed as running in the input buffer of the SPID:
64
-
65
-
```sql
66
-
EXECUTE msdb.dbo.sp_sqlagent_refresh_job
67
-
```
68
-
69
-
> [!NOTE]
70
-
> The SPID is in the RUNNABLE state and regularly waits for the `PREEMPTIVE_OS_LOOKUPACCOUNTSID` wait type, or the SPID is in a waiting state for the `ASYNC_NETWORK_IO` wait type.
24
+
> An idle CPU condition has not been defined - OnIdle job schedules will have no effect.
25
+
26
+
Additionally, the following entries might be logged in the *SQLAgent.log* file:
-**Scenario 3**: The database engine server displays a SQL Server process ID (SPID) from the "SQLAgent - Generic Refresher" service. Additionally, the following job is displayed as running in the input buffer of the SPID:
65
+
66
+
```sql
67
+
EXECUTE msdb.dbo.sp_sqlagent_refresh_job
68
+
```
69
+
70
+
> [!NOTE]
71
+
> The SPID is in the RUNNABLE state and regularly waits for the `PREEMPTIVE_OS_LOOKUPACCOUNTSID` wait type, or the SPID is in a waiting state for the `ASYNC_NETWORK_IO` wait type.
71
72
72
73
## Cause 1: Multiple job entries
73
74
74
-
This issue occurs because there are multiple job entries in SQL Server.
75
+
This issue can occur when there are multiple job entries in SQL Server.
75
76
76
77
> [!NOTE]
77
78
> The issue can also occur if you unintentionally set up multiple subscriptions for your reports in the Reporting Services Configuration Manager.
@@ -147,7 +148,19 @@ For info on the ODBC driver requirements for different versions of SQL Server, s
147
148
msiexec /i <ODBD_Driver_MSI> /qn
148
149
```
149
150
150
-
1. After the driver installation completes, restart the SQL Server Agent and confirm the _SQL SERVER AGENT_ service is running.
151
+
1. After the driver installation completes, restart the SQL Server Agent.
152
+
1. Confirm the _SQL SERVER AGENT_ service is running.
153
+
1. For an unnamed SQL Server instance run the following PowerShell command:
154
+
155
+
```powershell
156
+
Get-Service -Name SQLSERVERAGENT
157
+
```
158
+
159
+
1. For a named SQL Server instance run the following PowerShell command:
0 commit comments