Skip to content

Commit 6f53141

Browse files
authored
Update job-failed-error-258.md
Edit review per CI 8521
1 parent eb97354 commit 6f53141

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

support/sql/database-engine/agent/job-failed-error-258.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Troubleshoot SQL Agent Job Failures with Error 258
3-
description: Troubleshoot SQL Agent job failures with error 258. Learn how to resolve timeout issues, fix registry problems, and ensure stable job execution.
2+
title: Troubleshoot SQL Server Agent Job Failures with Error 258
3+
description: Troubleshoot SQL Server Agent job failures (error 258). Learn how to resolve timeout issues, fix registry problems, and ensure stable job execution.
44
ms.date: 12/04/2025
55
ms.custom: sap:SQL Agent (Jobs, Alerts, Operators)\Job failures, job scheduling and monitoring
66
ms.reviewer: prmadhes, v-shaywood
77
---
88

9-
# SQL Agent job fails with error 258
9+
# SQL Server Agent job fails and returns error 258
1010

11-
This article provides troubleshooting guidance for an issue where SQL Agent jobs fail with error code 258.
11+
This article provides troubleshooting guidance for an issue that causes Microsoft SQL Server Agent jobs to fail and generates error code 258.
1212

1313
## Symptoms
1414

15-
The [SQL Agent service](/ssms/agent/sql-server-agent#sql-server-agent-components) runs, but scheduled SQL Agent jobs don't execute. The SQL Server and Agent logs show network and authentication timeouts as well as failed sign-ins.
15+
The [SQL Server Agent service](/ssms/agent/sql-server-agent#sql-server-agent-components) runs, but scheduled SQL Server Agent jobs don't run. The SQL Server and Agent logs show network and authentication timeouts in addition to failed sign-ins.
1616

1717
The following example shows the error message that's added to the logs:
1818

@@ -27,14 +27,14 @@ Logon to server '<ServerName>' failed (ConnLogJobHistory)
2727

2828
This issue can be caused by any of the following underlying problems:
2929

30-
- Blocking on [msdb](/sql/relational-databases/databases/msdb-database) system tables that SQL Agent uses. This blocking prevents job metadata reads and writes.
30+
- Blocking on [msdb](/sql/relational-databases/databases/msdb-database) system tables that SQL Agent uses. This blocking prevents job metadata read and write operations.
3131
- Example system tables include `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). This exhaustion makes the Agent unable to connect or process schedules.
32+
- Non response (hangs) in important SQL Server Agent threads or other process-level problems.
33+
- Worker thread exhaustion in SQL Server (no workers available). This exhaustion prevents the Agent from connecting or processing schedules.
3434

3535
## Solution
3636

37-
1. Confirm that the SQL Server Agent service is running by using one of the following PowerShell commands:
37+
1. Verify that the SQL Server Agent service is running. Use one of the following PowerShell commands:
3838

3939
- For default SQL instances:
4040

@@ -62,8 +62,8 @@ This issue can be caused by any of the following underlying problems:
6262
Start-Service -Name "SQLSERVERAGENT$<InstanceName>"
6363
```
6464
65-
1. If jobs continue to fail after starting the SQL Server Agent service, continue to the next step. If jobs are completing successfully, the problem is resolved and no further action is needed.
66-
1. Check the jobs and schedules in `msdb` by opening [SQL Server Management Studio (SSMS)](/ssms/install/install) and running the following query:
65+
1. If jobs continue to fail after you start the SQL Server Agent service, go to the next step. If jobs are finishing successfully, the issue is resolved and no further action is required.
66+
1. Check the jobs and schedules in `msdb`. Start [SQL Server Management Studio (SSMS)](/ssms/install/install), and run the following query:
6767
6868
```tsql
6969
USE msdb;
@@ -107,7 +107,7 @@ This issue can be caused by any of the following underlying problems:
107107
GO
108108
```
109109
110-
- To identify the query associated with a blocking session run the following query in SSMS:
110+
- To identify the query that's associated with a blocking session, run the following query in SSMS:
111111
112112
```tsql
113113
SELECT
@@ -130,13 +130,13 @@ This issue can be caused by any of the following underlying problems:
130130
OR wt.resource_description LIKE '%jobsteps%';
131131
```
132132
133-
1. Resolve or terminate any blocking sessions you identified in the previous step. To terminate a session run the following query in SSMS:
133+
1. Resolve or terminate any blocking sessions that you identified in the previous step. To terminate a session, run the following query in SSMS:
134134
135135
```tsql
136136
Kill <Blocking_Session_ID>
137137
```
138138
139-
Once all blocking sessions are resolved or terminated, proceed to the next step.
139+
After all blocking sessions are resolved or terminated, go to the next step.
140140
141141
1. Check for any worker, thread, or resource health problems by running the following query in SSMS:
142142
@@ -207,36 +207,36 @@ This issue can be caused by any of the following underlying problems:
207207
ORDER BY Section, Metric;
208208
```
209209
210-
Investigate the output of the health check query for any of the following problems using the given symptoms:
210+
Investigate the output of the health check query for any of the following problems as determined by the given symptoms:
211211
212212
- Worker thread pressure:
213213
- Worker exhaustion, for example `Workers: 512/512`.
214-
- `WorkQueue` is greater than zero, indicating that tasks are waiting and the system is overloaded.
214+
- `WorkQueue` is greater than zero. This value indicates that tasks are waiting and the system is overloaded.
215215
- CPU pressure:
216-
- `RunnableTasks` is greater than zero, indicating there's a CPU bottleneck.
216+
- `RunnableTasks` is greater than zero. This value indicates that a CPU bottleneck exists.
217217
- Memory pressure:
218-
- `Memory state` is `LOW`, indicating the overall system is low on memory.
219-
- A low value for `AvailableMB`, indicating high memory usage for SQL Server.
220-
- A `PLE` value less than 300, indicating high memory churn.
221-
1. If you identified any worker, CPU, or memory problems in the previous step, reduce your current workload to resolve them. If you didn't identify any problems, proceed to the next step.
218+
- `Memory state` is `LOW`. This value indicates that the overall system is low on memory.
219+
- A low value for `AvailableMB`. This value indicates high memory usage for SQL Server.
220+
- A `PLE` value of less than 300. This value indicates high memory churn.
221+
1. If you identified any worker, CPU, or memory issues in the previous step, reduce your current workload to resolve the issues. If you didn't identify any issues, go to the next step.
222222
1. Restart the SQL Server Agent by running one of the the following PowerShell commands:
223223
224224
> [!IMPORTANT]
225225
> Restarting the SQL Server Agent interrupts any currently running jobs.
226226
227-
- For default SQL instances:
227+
- For default SQL Server instances:
228228
229229
```powershell
230230
Restart-Service -Name "SQLSERVERAGENT"
231231
```
232232
233-
- For named SQL instances:
233+
- For named SQL Server instances:
234234
235235
```powershell
236236
Restart-Service -Name "SQLAgent$<InstanceName>"
237237
```
238238
239-
1. After SQL Server Agent restarts, verify that jobs are now running by using the [Job Activity Monitor](/ssms/agent/monitor-job-activity#job-activity-monitor).
239+
1. After SQL Server Agent restarts, verify that jobs are now running. Use the [Job Activity Monitor](/ssms/agent/monitor-job-activity#job-activity-monitor).
240240
241241
## Related content
242242

0 commit comments

Comments
 (0)