sysmail_stop_sp (Transact-SQL)
SQL Server 2005
Stops Database Mail by stopping the Service Broker objects that the external program uses.
Transact-SQL Syntax Conventions
This stored procedure is in the msdb database.
This stored procedure stops the Database Mail queue that holds outgoing message requests and turns off Service Broker activation for the external program.
When the queues are stopped, the Database Mail external program does not process messages. This stored procedure allows you to stop Database Mail for troubleshooting or maintenance purposes.
To start Database Mail, use sysmail_start_sp. Notice that sp_send_dbmail still accepts mail when the Service Broker objects are stopped.
Note: |
|---|
| This stored procedure only stops the queues for Database Mail. This stored procedure does not deactivate Service Broker message delivery in the database. For more information about deactivating Service Broker message delivery, see How to: Deactivate Service Broker Message Delivery in Databases (Transact-SQL). This stored procedure does not disable the Database Mail extended stored procedures to reduce the surface area. To disable the extended stored procedures, see SQL Server Surface Area Configuration. |
Reference
sysmail_start_sp (Transact-SQL)Database Mail and SQL Mail Stored Procedures (Transact-SQL)