Skip to content

Commit 004181e

Browse files
committed
System stored procedure refresh - phase 13
1 parent ee018f5 commit 004181e

22 files changed

+84
-91
lines changed

docs/relational-databases/system-stored-procedures/sysmail-delete-profile-sp-transact-sql.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Deletes a mail profile used by Database Mail."
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -66,8 +66,7 @@ The stored procedure `sysmail_delete_profile_sp` is in the `msdb` database and i
6666
The following example shows deleting the profile named `AdventureWorks Administrator`.
6767

6868
```sql
69-
EXEC msdb.dbo.sysmail_delete_profile_sp
70-
@profile_name = 'AdventureWorks Administrator';
69+
EXECUTE msdb.dbo.sysmail_delete_profile_sp @profile_name = 'AdventureWorks Administrator';
7170
```
7271

7372
## Related content

docs/relational-databases/system-stored-procedures/sysmail-delete-profileaccount-sp-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "sysmail_delete_profileaccount_sp (Transact-SQL)"
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -77,14 +77,14 @@ The stored procedure `sysmail_delete_profileaccount_sp` is in the `msdb` databas
7777
The following example shows removing the account `Audit Account` from the profile `AdventureWorks Administrator`.
7878

7979
```sql
80-
EXEC msdb.dbo.sysmail_delete_profileaccount_sp
80+
EXECUTE msdb.dbo.sysmail_delete_profileaccount_sp
8181
@profile_name = 'AdventureWorks Administrator',
8282
@account_name = 'Audit Account';
8383
```
8484

8585
## Related content
8686

8787
- [Database Mail](../database-mail/database-mail.md)
88-
- [Create a Database Mail Account](../database-mail/create-a-database-mail-account.md)
88+
- [Create a Database Mail account](../database-mail/create-a-database-mail-account.md)
8989
- [Database Mail Configuration Objects](../database-mail/database-mail-configuration-objects.md)
9090
- [Database Mail stored procedures (Transact-SQL)](database-mail-stored-procedures-transact-sql.md)

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Lists information (except passwords) about Database Mail accounts.
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -81,7 +81,7 @@ The stored procedure `sysmail_help_account_sp` is in the `msdb` database and is
8181
The following example shows listing the account information for all accounts in the instance.
8282

8383
```sql
84-
EXEC msdb.dbo.sysmail_help_account_sp;
84+
EXECUTE msdb.dbo.sysmail_help_account_sp;
8585
```
8686

8787
Here is a sample result set, edited for line length:
@@ -98,8 +98,7 @@ account_id name description
9898
The following example shows listing the account information for the account named `AdventureWorks Administrator`.
9999

100100
```sql
101-
EXEC msdb.dbo.sysmail_help_account_sp
102-
@account_name = 'AdventureWorks Administrator';
101+
EXECUTE msdb.dbo.sysmail_help_account_sp @account_name = 'AdventureWorks Administrator';
103102
```
104103

105104
Here is a sample result set, edited for line length:
@@ -113,5 +112,5 @@ account_id name description
113112
## Related content
114113

115114
- [Database Mail](../database-mail/database-mail.md)
116-
- [Create a Database Mail Account](../database-mail/create-a-database-mail-account.md)
115+
- [Create a Database Mail account](../database-mail/create-a-database-mail-account.md)
117116
- [Database Mail stored procedures (Transact-SQL)](database-mail-stored-procedures-transact-sql.md)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Displays configuration settings for Database Mail."
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/30/2023
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -68,7 +68,7 @@ The stored procedure `sysmail_help_configure_sp` is in the `msdb` database and i
6868
The following example shows listing the Database Mail configuration settings for the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] instance.
6969

7070
```sql
71-
EXEC msdb.dbo.sysmail_help_configure_sp;
71+
EXECUTE msdb.dbo.sysmail_help_configure_sp;
7272
```
7373

7474
Here is a sample result set, edited for line length:

docs/relational-databases/system-stored-procedures/sysmail-help-principalprofile-sp-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 associations between Database Mail profile
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -83,7 +83,7 @@ If `sysmail_help_principalprofile_sp` is invoked without parameters, the result
8383
The following example shows listing the information for all associations between the `AdventureWorks Administrator` profile and the `ApplicationLogin` principal in the `msdb` database.
8484

8585
```sql
86-
EXEC msdb.dbo.sysmail_help_principalprofile_sp
86+
EXECUTE msdb.dbo.sysmail_help_principalprofile_sp
8787
@principal_name = 'danw',
8888
@profile_name = 'AdventureWorks Administrator';
8989
```
@@ -101,7 +101,7 @@ principal_id principal_name profile_id profile_name is_de
101101
The following example shows listing the information for all associations in the instance.
102102

103103
```sql
104-
EXEC msdb.dbo.sysmail_help_principalprofile_sp;
104+
EXECUTE msdb.dbo.sysmail_help_principalprofile_sp;
105105
```
106106

107107
Here is a sample result set, reformatted for line length.

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Lists information about one or more mail profiles."
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 05/30/2023
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -72,7 +72,7 @@ The stored procedure `sysmail_help_profile_sp` is in the `msdb` database and is
7272
The following example shows listing all profiles in the instance.
7373

7474
```sql
75-
EXEC msdb.dbo.sysmail_help_profile_sp;
75+
EXECUTE msdb.dbo.sysmail_help_profile_sp;
7676
```
7777

7878
Here is a sample result set, reformatted for line length:
@@ -89,8 +89,7 @@ profile_id name description
8989
The following example shows listing information for the profile `AdventureWorks Administrator`.
9090

9191
```sql
92-
EXEC msdb.dbo.sysmail_help_profile_sp
93-
@profile_name = 'AdventureWorks Administrator' ;
92+
EXECUTE msdb.dbo.sysmail_help_profile_sp @profile_name = 'AdventureWorks Administrator';
9493
```
9594

9695
Here is a sample result set, reformatted for line length:

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Lists the accounts associated with one or more Database Mail profi
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/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 stored procedure `sysmail_help_profileaccount_sp` is in the `msdb` database
8686
The following example shows listing the information for the `AdventureWorks Administrator` profile by specifying the profile name.
8787

8888
```sql
89-
EXEC msdb.dbo.sysmail_help_profileaccount_sp
90-
@profile_name = 'AdventureWorks Administrator';
89+
EXECUTE msdb.dbo.sysmail_help_profileaccount_sp @profile_name = 'AdventureWorks Administrator';
9190
```
9291

9392
Here is a sample result set, edited for line length:
@@ -104,8 +103,7 @@ profile_id profile_name account_id account_name sequen
104103
The following example shows listing the information for the `AdventureWorks Administrator` profile by specifying the profile ID for the profile.
105104

106105
```sql
107-
EXEC msdb.dbo.sysmail_help_profileaccount_sp
108-
@profile_id = 131 ;
106+
EXECUTE msdb.dbo.sysmail_help_profileaccount_sp @profile_id = 131;
109107
```
110108

111109
Here is a sample result set, edited for line length:
@@ -122,7 +120,7 @@ profile_id profile_name account_id account_name sequen
122120
The following example shows listing the accounts for all profiles in the instance.
123121

124122
```sql
125-
EXEC msdb.dbo.sysmail_help_profileaccount_sp;
123+
EXECUTE msdb.dbo.sysmail_help_profileaccount_sp;
126124
```
127125

128126
Here is a sample result set, edited for line length:
@@ -138,6 +136,6 @@ profile_id profile_name account_id account_name sequen
138136
## Related content
139137

140138
- [Database Mail](../database-mail/database-mail.md)
141-
- [Create a Database Mail Account](../database-mail/create-a-database-mail-account.md)
139+
- [Create a Database Mail account](../database-mail/create-a-database-mail-account.md)
142140
- [Database Mail Configuration Objects](../database-mail/database-mail-configuration-objects.md)
143141
- [Database Mail stored procedures (Transact-SQL)](database-mail-stored-procedures-transact-sql.md)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Displays the status of Database Mail queues."
44
author: markingmyname
55
ms.author: maghan
66
ms.reviewer: randolphwest
7-
ms.date: 11/18/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -66,6 +66,6 @@ STARTED
6666

6767
## Related content
6868

69-
- [Database Mail External Program](../database-mail/database-mail-external-program.md)
69+
- [Database Mail external program](../database-mail/database-mail-external-program.md)
7070
- [sysmail_start_sp (Transact-SQL)](sysmail-start-sp-transact-sql.md)
7171
- [sysmail_stop_sp (Transact-SQL)](sysmail-stop-sp-transact-sql.md)

docs/relational-databases/system-stored-procedures/sysmail-start-sp-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Starts Database Mail by starting the Service Broker objects that t
44
author: MashaMSFT
55
ms.author: mathoma
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -73,6 +73,6 @@ GO
7373
## Related content
7474

7575
- [Database Mail](../database-mail/database-mail.md)
76-
- [Database Mail XPs (server configuration option)](../../database-engine/configure-windows/database-mail-xps-server-configuration-option.md)
76+
- [Server configuration: Database Mail XPs](../../database-engine/configure-windows/database-mail-xps-server-configuration-option.md)
7777
- [sysmail_stop_sp (Transact-SQL)](sysmail-stop-sp-transact-sql.md)
7878
- [Database Mail stored procedures (Transact-SQL)](database-mail-stored-procedures-transact-sql.md)

docs/relational-databases/system-stored-procedures/sysmail-stop-sp-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Stops Database Mail by stopping the Service Broker objects that th
44
author: MashaMSFT
55
ms.author: mathoma
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2024
7+
ms.date: 06/23/2025
88
ms.service: sql
99
ms.subservice: system-objects
1010
ms.topic: "reference"
@@ -50,7 +50,7 @@ When the queues are stopped, the Database Mail external program doesn't process
5050
To start Database Mail, use `sysmail_start_sp`. `sp_send_dbmail` still accepts mail when the [!INCLUDE [ssSB](../../includes/sssb-md.md)] objects are stopped.
5151

5252
> [!NOTE]
53-
> `sysmail_stop_sp` only stops the queues for Database Mail. This stored procedure doesn't deactivate [!INCLUDE [ssSB](../../includes/sssb-md.md)] message delivery in the database. This stored procedure doesn't disable the Database Mail extended stored procedures to reduce the surface area. To disable the extended stored procedures, see the [Database Mail XPs (server configuration option)](../../database-engine/configure-windows/database-mail-xps-server-configuration-option.md) of the `sp_configure` system stored procedure.
53+
> `sysmail_stop_sp` only stops the queues for Database Mail. This stored procedure doesn't deactivate [!INCLUDE [ssSB](../../includes/sssb-md.md)] message delivery in the database. This stored procedure doesn't disable the Database Mail extended stored procedures to reduce the surface area. To disable the extended stored procedures, see [Server configuration: Database Mail XPs](../../database-engine/configure-windows/database-mail-xps-server-configuration-option.md).
5454
5555
## Permissions
5656

0 commit comments

Comments
 (0)