Database Mail Messaging Objects
Database Mail exposes the following objects in the msdb database when Database Mail is enabled.
Name |
Type |
Description |
---|---|---|
View |
Lists all messages submitted to Database Mail. |
|
View |
Lists messages about the behavior of the Database Mail External Program. |
|
View |
Information about messages that Database Mail could not sent. |
|
View |
Information about attachments to Database Mail messages. |
|
View |
Information about messages that have been sent using Database Mail. |
|
View |
Information about messages that Database Mail in currently trying to send. |
|
Stored Procedure |
Sends e-mail messages using Database Mail. |
|
Stored Procedure |
Deletes messages from the Database Mail log. |
|
Stored Procedure |
Deletes mail items from the Database Mail queue. |
|
Stored Procedure |
Indicates if Database Mail is started. |
|
Stored Procedure |
Starts the Service Broker objects that the external program uses. These objects are started by default. |
|
Stored Procedure |
Stops the Service Broker objects that the external program uses. |
These objects are the interface for Database Mail within the mail host database. Other objects are installed to implement the functionality provided by the objects listed above. However, those objects are reserved for internal use.
Use the Database Mail views to troubleshoot Database Mail. For more information, see Troubleshooting Database Mail.
The msdb database contains stored procedures for configuring Database Mail. For more information about those procedures, see Database Mail Configuration Stored Procedures.