Skip to content

Commit 042cb72

Browse files
authored
Merge pull request #34506 from rwestMSFT/rw-0623-stored-procedures-007
System stored procedure refresh - phase 7
2 parents 931a2d1 + 7adf60a commit 042cb72

File tree

40 files changed

+122
-124
lines changed

40 files changed

+122
-124
lines changed

docs/relational-databases/system-stored-procedures/sp-help-jobactivity-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Lists information about the runtime state of SQL Server Agent jobs.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -85,7 +85,7 @@ Returns the following result set:
8585

8686
This procedure provides a snapshot of the current state of the jobs. The results returned represent information at the time that the request is processed.
8787

88-
[!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent creates a session ID each time that the Agent service starts. The session ID is stored in the table `msdb`.dbo.syssessions**.
88+
[!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Agent creates a session ID each time that the Agent service starts. The session ID is stored in the table `msdb.dbo.syssessions`.
8989

9090
When no *@session_id* is provided, lists information about the most recent session.
9191

@@ -113,7 +113,7 @@ The following example lists activity for all jobs that the current user has perm
113113
USE msdb;
114114
GO
115115

116-
EXEC dbo.sp_help_jobactivity;
116+
EXECUTE dbo.sp_help_jobactivity;
117117
GO
118118
```
119119

docs/relational-databases/system-stored-procedures/sp-help-jobcount-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_help_jobcount provides the number of jobs that a schedule is att
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -86,8 +86,7 @@ The following example lists the number of jobs attached to the `NightlyJobs` sch
8686
USE msdb;
8787
GO
8888

89-
EXEC sp_help_jobcount
90-
@schedule_name = N'NightlyJobs';
89+
EXECUTE sp_help_jobcount @schedule_name = N'NightlyJobs';
9190
GO
9291
```
9392

docs/relational-databases/system-stored-procedures/sp-help-jobhistory-transact-sql.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Provides information about the jobs for servers in the multiserver
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -177,8 +177,7 @@ The following example lists all job information for the `NightlyBackups` job.
177177
USE msdb;
178178
GO
179179

180-
EXEC dbo.sp_help_jobhistory
181-
@job_name = N'NightlyBackups';
180+
EXECUTE dbo.sp_help_jobhistory @job_name = N'NightlyBackups';
182181
GO
183182
```
184183

@@ -190,7 +189,7 @@ The following example prints all columns and all job information for any failed
190189
USE msdb;
191190
GO
192191

193-
EXEC dbo.sp_help_jobhistory
192+
EXECUTE dbo.sp_help_jobhistory
194193
@sql_message_id = 50100,
195194
@sql_severity = 20,
196195
@run_status = 0,

docs/relational-databases/system-stored-procedures/sp-help-jobs-in-schedule-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Returns information about the jobs that a particular schedule is at
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -117,8 +117,7 @@ The following example lists the jobs attached to the `NightlyJobs` schedule.
117117
USE msdb;
118118
GO
119119

120-
EXEC sp_help_jobs_in_schedule
121-
@schedule_name = N'NightlyJobs';
120+
EXECUTE sp_help_jobs_in_schedule @schedule_name = N'NightlyJobs';
122121
GO
123122
```
124123

docs/relational-databases/system-stored-procedures/sp-help-jobschedule-transact-sql.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Returns information about the scheduling of jobs used by SQL Server
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -125,8 +125,7 @@ The following example returns the scheduling information for a job named `Backup
125125
USE msdb;
126126
GO
127127

128-
EXEC dbo.sp_help_jobschedule
129-
@job_name = N'BackupDatabase' ;
128+
EXECUTE dbo.sp_help_jobschedule @job_name = N'BackupDatabase';
130129
GO
131130
```
132131

@@ -138,7 +137,7 @@ The following example returns the information for the schedule named `NightlyJob
138137
USE msdb;
139138
GO
140139

141-
EXEC dbo.sp_help_jobschedule
140+
EXECUTE dbo.sp_help_jobschedule
142141
@job_name = N'RunReports',
143142
@schedule_name = N'NightlyJobs';
144143
GO
@@ -152,7 +151,7 @@ The following example returns the information for the schedule named `NightlyJob
152151
USE msdb;
153152
GO
154153

155-
EXEC dbo.sp_help_jobschedule
154+
EXECUTE dbo.sp_help_jobschedule
156155
@job_name = N'RunReports',
157156
@schedule_name = N'NightlyJobs',
158157
@include_description = 1;

docs/relational-databases/system-stored-procedures/sp-help-jobserver-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_help_jobserver returns information about the server for a given
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -101,7 +101,7 @@ The following example returns information, including last-run information, about
101101
USE msdb;
102102
GO
103103

104-
EXEC dbo.sp_help_jobserver
104+
EXECUTE dbo.sp_help_jobserver
105105
@job_name = N'NightlyBackups',
106106
@show_last_run_details = 1;
107107
GO

docs/relational-databases/system-stored-procedures/sp-help-jobstep-transact-sql.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Returns information for the steps in a job used by SQL Server Agent
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -123,8 +123,7 @@ The following example returns all the job steps for the job named `Weekly Sales
123123
USE msdb;
124124
GO
125125

126-
EXEC dbo.sp_help_jobstep
127-
@job_name = N'Weekly Sales Data Backup';
126+
EXECUTE dbo.sp_help_jobstep @job_name = N'Weekly Sales Data Backup';
128127
GO
129128
```
130129

@@ -136,7 +135,7 @@ The following example returns information about the first job step for the job n
136135
USE msdb;
137136
GO
138137

139-
EXEC dbo.sp_help_jobstep
138+
EXECUTE dbo.sp_help_jobstep
140139
@job_name = N'Weekly Sales Data Backup',
141140
@step_id = 1;
142141
GO

docs/relational-databases/system-stored-procedures/sp-help-jobsteplog-transact-sql.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Returns metadata about a specific SQL Server Agent job step log.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -104,8 +104,7 @@ The following example returns all the job step log information, for the job name
104104
USE msdb;
105105
GO
106106

107-
EXEC dbo.sp_help_jobsteplog
108-
@job_name = N'Weekly Sales Data Backup';
107+
EXECUTE dbo.sp_help_jobsteplog @job_name = N'Weekly Sales Data Backup';
109108
GO
110109
```
111110

@@ -117,7 +116,7 @@ The following example returns job step log information, about the first job step
117116
USE msdb;
118117
GO
119118

120-
EXEC dbo.sp_help_jobsteplog
119+
EXECUTE dbo.sp_help_jobsteplog
121120
@job_name = N'Weekly Sales Data Backup',
122121
@step_id = 1;
123122
GO

docs/relational-databases/system-stored-procedures/sp-help-log-shipping-primary-database-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: sp_help_log_shipping_primary_database retrieves primary database se
44
author: MashaMSFT
55
ms.author: mathoma
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -81,8 +81,7 @@ Only members of the **sysadmin** fixed server role can run this procedure.
8181
This example illustrates using `sp_help_log_shipping_primary_database` to retrieve primary database settings for the database [!INCLUDE [ssSampleDBobject](../../includes/sssampledbobject-md.md)].
8282

8383
```sql
84-
EXEC master.dbo.sp_help_log_shipping_primary_database
85-
@database = N'AdventureWorks2022';
84+
EXECUTE master.dbo.sp_help_log_shipping_primary_database @database = N'AdventureWorks2022';
8685
GO
8786
```
8887

docs/relational-databases/system-stored-procedures/sp-help-log-shipping-primary-secondary-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Returns information regarding all the secondary databases for a giv
44
author: MashaMSFT
55
ms.author: mathoma
66
ms.reviewer: randolphwest
7-
ms.date: 05/14/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -62,8 +62,7 @@ Only members of the **sysadmin** fixed server role can run this procedure.
6262
This example illustrates using `sp_help_log_shipping_primary_secondary` to retrieve a list of secondary databases associate with the primary database [!INCLUDE [ssSampleDBobject](../../includes/sssampledbobject-md.md)].
6363

6464
```sql
65-
EXEC master.dbo.sp_help_log_shipping_primary_secondary
66-
@primary_database=N'AdventureWorks';
65+
EXECUTE master.dbo.sp_help_log_shipping_primary_secondary @primary_database = N'AdventureWorks';
6766
GO
6867
```
6968

0 commit comments

Comments
 (0)