Skip to content

Commit 727116f

Browse files
committed
begin work
1 parent 9f54305 commit 727116f

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Troubleshoot SQL Agent Job Failures with Error 258
3+
description: Learn how to troubleshoot and resolve repeated crashes of the SQL Agent service. Follow step-by-step solutions to fix registry issues and improve stability.
4+
ms.date: 12/04/2025
5+
ms.custom: sap:SQL Agent (Jobs, Alerts, Operators)\Job failures, job scheduling and monitoring
6+
ms.reviewer: prmadhes, v-shaywood
7+
---
8+
9+
# SQL Agent job fails with error 258
10+
11+
This article provides troubleshooting guidance for an issue where SQL Agent jobs fail with error code 258.
12+
13+
## Symptoms
14+
15+
The SQL Agent service is running, but scheduled SQL Agent jobs are not being executed. The SQL Server and Agent logs show network and login timeouts as well as failed logons.
16+
17+
The following is an example of the error message that is added to the logs:
18+
19+
```output
20+
SQLServer Error: 258, TCP Provider: Timeout error [258]
21+
ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
22+
SQLServer Error: 258, Unable to complete login process due to delay in prelogin response [SQLSTATE 08001]
23+
Logon to server '<ServerName>' failed (ConnLogJobHistory)
24+
```
25+
26+
## Cause
27+
28+
This issue can be caused by any of the following underlying problems:
29+
30+
- Blocking of `msdb` system tables used by Agent, which prevents job metadata reads and writes.
31+
- Example system tables: `dbo.sysjobs`, `dbo.sysjobschedulers`, and `dbo.jobsteps`.
32+
- Hangs inside important SQL Server Agent threads or other process-level problems.
33+
- Worker thread exhaustion in SQL Server (no workers available), making the Agent unable to connect or process schedules.
34+
35+
## Solution
36+
37+

support/sql/database-engine/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ items:
6666
href: startup-shutdown/toc.yml
6767

6868
- name: SQL Agent (Jobs, Alerts, Operators)
69-
items:
69+
items: agent/
7070

7171

7272
- name: SQL Server resource usage (CPU, Memory, Storage) and Configuration

0 commit comments

Comments
 (0)