|
1 | 1 | --- |
2 | 2 | title: SQL Server agent crashes when you try to start it |
3 | 3 | 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 |
6 | 6 | ms.custom: sap:Startup, shutdown, restart issues (instance or database) |
7 | 7 | --- |
8 | 8 |
|
@@ -69,23 +69,54 @@ EXECUTE msdb.dbo.sp_sqlagent_refresh_job |
69 | 69 | > [!NOTE] |
70 | 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. |
71 | 71 |
|
72 | | -## Cause |
| 72 | +## Cause 1: Multiple job entries |
73 | 73 |
|
74 | 74 | This issue occurs because there are multiple job entries in SQL Server. |
75 | 75 |
|
76 | 76 | > [!NOTE] |
77 | 77 | > The issue can also occur if you unintentionally set up multiple subscriptions for your reports in the Reporting Services Configuration Manager. |
78 | 78 |
|
79 | | -## Workaround |
| 79 | +### Workaround |
80 | 80 |
|
81 | 81 | To work around this issue, delete the jobs that you don't require. |
82 | 82 |
|
83 | 83 | > [!NOTE] |
84 | 84 | > If there are many job entries because you unintentionally set up many subscriptions, delete the unnecessary subscriptions by using Reporting Services Configuration Manager. |
85 | 85 |
|
| 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 | +
|
86 | 118 | ## More information |
87 | 119 |
|
88 | 120 | - For more information about how to delete a job, see [Delete One or More Jobs](/sql/ssms/agent/delete-one-or-more-jobs). |
89 | 121 | - 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). |
90 | 122 | - 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