Skip to content

Commit 2e111cc

Browse files
committed
documentor
1 parent d64f9fd commit 2e111cc

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

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

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,42 @@ 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 used by Agent, which prevents job metadata reads and writes.
31-
- Example system tables: `dbo.sysjobs`, `dbo.sysjobschedulers`, and `dbo.jobsteps`.
30+
- Blocking on [msdb](/sql/relational-databases/databases/msdb-database) system tables that SQL Agent uses. This blocking prevents job metadata reads and writes.
31+
- Example system tables include `dbo.sysjobs`, `dbo.sysjobschedulers`, and `dbo.jobsteps`.
3232
- 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.
33+
- Worker thread exhaustion in SQL Server (no workers available). This exhaustion makes the Agent unable to connect or process schedules.
3434

3535
## Solution
3636

3737
1. Confirm that the SQL Server Agent service is running by using one of the following PowerShell commands:
3838

39-
1. For default SQL instances:
39+
* For default SQL instances:
4040

4141
```powershell
4242
Get-Service -Name "SQLSERVERAGENT"
4343
```
4444
45-
1. For named SQL instances:
45+
* For named SQL instances:
4646
4747
```powershell
4848
Get-Service -Name "SQLSERVERAGENT$<InstanceName>"
4949
```
5050
5151
1. If the SQL Server Agent service isn't running, start it by using one of the following commands:
5252
53-
1. For default SQL instances:
53+
* For default SQL instances:
5454
5555
```powershell
5656
Start-Service -Name "SQLSERVERAGENT"
5757
```
5858
59-
1. For named SQL instances:
59+
* For named SQL instances:
6060
6161
```powershell
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 issue is resolved and no further action is needed.
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.
6666
1. Check the jobs and schedules in `msdb` by opening [SQL Server Management Studio (SSMS)](/ssms/install/install) and running the following query:
6767
6868
```tsql
@@ -87,7 +87,7 @@ This issue can be caused by any of the following underlying problems:
8787
GO
8888
```
8989
90-
Analyze the query output for any jobs which are enabled but have failed. Investigate the job history and job-step outputs for any problematic jobs to identify and fix underlying issues.
90+
Analyze the query output for any jobs that are enabled but failed. Investigate the job history and job-step outputs for any problematic jobs to identify and fix underlying problems.
9191
9292
1. Detect blocking sessions on `msdb` Agent system tables by running the following query in SSMS:
9393
@@ -107,7 +107,7 @@ This issue can be caused by any of the following underlying problems:
107107
GO
108108
```
109109
110-
1. To identify the query associated with a blocking session run the following query in SSMS:
110+
* To identify the query associated with a blocking session run the following query in SSMS:
111111
112112
```tsql
113113
SELECT
@@ -138,7 +138,7 @@ This issue can be caused by any of the following underlying problems:
138138
139139
Once all blocking sessions are resolved or terminated, proceed to the next step.
140140
141-
1. Check for any worker, thread, or resource health issues by running the following query in SSMS:
141+
1. Check for any worker, thread, or resource health problems by running the following query in SSMS:
142142
143143
```tsql
144144
/* ============================================================
@@ -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 issues using the given symptoms:
211-
212-
1. Worker thread pressure:
213-
1. Worker exhaustion, for example `Workers: 512/512`.
214-
1. `WorkQueue` is greater than zero, indicating that tasks are waiting and the system is overloaded.
215-
1. CPU pressure:
216-
1. `RunnableTasks` is greater than zero, indicating there is a CPU bottleneck.
217-
1. Memory pressure:
218-
1. `Memory state` is `LOW`, indicating the overall system is low on memory.
219-
1. A low value for `AvailableMB`, indicating high memory usage for SQL Server.
220-
1. A `PLE` value less than 300, indicating high memory churn.
221-
1. If you identified any worker, CPU, or memory issues in the previous step reduce your current workload to resolve them. If no worker, CPU, or memory issues were identified, proceed to the next step.
210+
Investigate the output of the health check query for any of the following problems using the given symptoms:
211+
212+
* Worker thread pressure:
213+
* Worker exhaustion, for example `Workers: 512/512`.
214+
* `WorkQueue` is greater than zero, indicating that tasks are waiting and the system is overloaded.
215+
* CPU pressure:
216+
* `RunnableTasks` is greater than zero, indicating there's a CPU bottleneck.
217+
* 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 worker, CPU, or memory problems, proceed 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-
1. For default SQL instances:
227+
* For default SQL instances:
228228
229229
```powershell
230230
Restart-Service -Name "SQLSERVERAGENT"
231231
```
232232
233-
1. For named SQL instances:
233+
* For named SQL instances:
234234
235235
```powershell
236236
Restart-Service -Name "SQLAgent$<InstanceName>"
237237
```
238238
239-
1. After the SQL Server Agent restarts, verify that jobs are now being executed 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 by using the [Job Activity Monitor](/ssms/agent/monitor-job-activity#job-activity-monitor).
240240
241241
## Related content
242242

0 commit comments

Comments
 (0)