You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[!INCLUDE [SQL Server SQL MI](../../includes/applies-to-version/sql-asdbmi.md)]
26
26
27
-
Contains information about the execution of scheduled jobs by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Agent.
27
+
Contains information about the execution of scheduled jobs by the [SQL Server Agent](../../ssms/agent/sql-server-agent.md).
28
28
29
29
> [!NOTE]
30
30
> In most cases the data is updated only after the job step completes and the table typically contains no records for job steps that are currently in progress, but in some cases underlying processes *do* provide information about in progress job steps.
@@ -43,31 +43,43 @@ This table is stored in the **msdb** database.
43
43
|**run_status**|**int**|Status of the job execution:<br /><br /> **0** = Failed<br /><br /> **1** = Succeeded<br /><br /> **2** = Retry<br /><br /> **3** = Canceled<br /><br />**4** = In Progress|
44
44
|**run_date**|**int**|Date the job or step started execution. For an In Progress history, this is the date/time the history was written.|
45
45
|**run_time**|**int**|Time the job or step started in **HHMMSS** format.|
46
-
|**run_duration**|**int**|Elapsed time in the execution of the job or step in **HHMMSS** format.|
46
+
|**run_duration**|**int**|Elapsed time in the execution of the job or step in **HHMMSS** format for time periods up to 24 hours. Find code to translate longer run durations in [Example](#example).|
47
47
|**operator_id_emailed**|**int**|ID of the operator notified when the job completed.|
48
48
|**operator_id_netsent**|**int**|ID of the operator notified by a message when the job completed.|
49
49
|**operator_id_paged**|**int**|ID of the operator notified by pager when the job completed.|
50
50
|**retries_attempted**|**int**|Number of retry attempts for the job or step.|
51
51
|**server**|**sysname**|Name of the server where the job was executed.|
52
52
53
-
## Example
54
-
The following [!INCLUDE[tsql](../../includes/tsql-md.md)] query will convert the **run_time** and **run_duration** columns into a more user friendly format. Execute the script in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
53
+
## Example
54
+
55
+
The following [!INCLUDE[tsql](../../includes/tsql-md.md)] query converts the **run_time** and **run_duration** columns into a more user friendly format. Execute the script in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)].
0 commit comments