Skip to content

Commit 0618c33

Browse files
committed
Writer updates
1 parent 0605b88 commit 0618c33

1 file changed

Lines changed: 36 additions & 5 deletions

File tree

support/sql/database-engine/startup-shutdown/sql-server-agent-crashes-upon-start.md

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: SQL Server agent crashes when you try to start it
33
description: This article discusses the issues experienced by SQL Server agent service when you create multiple jobs in your SQL Server instance.
4-
ms.date: 11/08/2022
5-
ms.reviewer: ramakoni1, v-jayaramanp
4+
ms.date: 12/03/2025
5+
ms.reviewer: ramakoni1, v-jayaramanp, v-shaywood
66
ms.custom: sap:Startup, shutdown, restart issues (instance or database)
77
---
88

@@ -69,23 +69,54 @@ EXECUTE msdb.dbo.sp_sqlagent_refresh_job
6969
> [!NOTE]
7070
> 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.
7171
72-
## Cause
72+
## Cause 1: Multiple job entries
7373

7474
This issue occurs because there are multiple job entries in SQL Server.
7575

7676
> [!NOTE]
7777
> The issue can also occur if you unintentionally set up multiple subscriptions for your reports in the Reporting Services Configuration Manager.
7878
79-
## Workaround
79+
### Workaround
8080

8181
To work around this issue, delete the jobs that you don't require.
8282

8383
> [!NOTE]
8484
> If there are many job entries because you unintentionally set up many subscriptions, delete the unnecessary subscriptions by using Reporting Services Configuration Manager.
8585
86+
## Cause 2: ODBC driver missing or corrupted
87+
88+
This issue can occur if the Open Database Connectivity (ODBC) driver is removed or becomes corrupted (often after system updates). SQL Server requires the ODBC driver as a core dependency. For info on the ODBC driver requirements for different versions of SQL Server, see [Hardware and software requirements for SQL Server](/sql/sql-server/install/hardware-and-software-requirements-for-installing-sql-server-2025).
89+
90+
### Solution
91+
92+
1. To verify that the ODBC driver is missing, run one of the following commands from an elevated command prompt or PowerShell:
93+
1. Command prompt:
94+
95+
```cli
96+
odbcconf /L
97+
```
98+
99+
1. PowerShell:
100+
101+
```powershell
102+
Get-OdbcDriver
103+
```
104+
105+
1. Confirm that the ODBC driver for SQL Server is missing. <!-- Need to confirm with SME what the user should look for to confirm the driver is missing -->
106+
1. If the driver is missing continue to the next step.
107+
1. If the driver is not missing, see [Cause 1](#cause-1-multiple-job-entries)
108+
1. [Download the ODBC Driver for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server)
109+
1. Install the driver using the GUI or a silent install.
110+
1. You can perform a silent install by using the following command:
111+
112+
```cli
113+
msiexec /i <ODBD_Driver_MSI> /qn
114+
```
115+
116+
1. After the driver installation completes, restart the SQL Server Agent and confirm the _SQL SERVER AGENT_ service is running.
117+
86118
## More information
87119
88120
- For more information about how to delete a job, see [Delete One or More Jobs](/sql/ssms/agent/delete-one-or-more-jobs).
89121
- For more information on managing your reporting services subscriptions, see [Create and Manage Subscriptions for Native Mode Report Servers](/sql/reporting-services/subscriptions/create-and-manage-subscriptions-for-native-mode-report-servers?redirectedfrom=MSDN).
90122
- For more information about various wait types, see [SQL Server wait types](/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql).
91-

0 commit comments

Comments
 (0)