Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit
Twitter LinkedIn Facebook Email

Database Mail Stored Procedures (Transact-SQL)

  • Article
  • 02/28/2023
  • 2 minutes to read

In this article

Applies to: SQL Server Azure SQL Managed Instance

Microsoft SQL Server supports the following system stored procedures that are used to perform e-mail operations from within an instance of SQL Server.

Database Mail Procedures

sp_send_dbmail

sysmail_add_account_sp

sysmail_add_principalprofile_sp

sysmail_add_profile_sp

sysmail_add_profileaccount_sp

sysmail_configure_sp

sysmail_delete_account_sp

sysmail_delete_log_sp

sysmail_delete_mailitems_sp

sysmail_delete_principalprofile_sp

sysmail_delete_profile_sp

sysmail_delete_profileaccount_sp

sysmail_help_account_sp

sysmail_help_configure_sp

sysmail_help_principalprofile_sp

sysmail_help_profile_sp

sysmail_help_profileaccount_sp

sysmail_help_queue_sp

sysmail_help_status_sp

sysmail_start_sp

sysmail_stop_sp

sysmail_update_account_sp

sysmail_update_principalprofile_sp

sysmail_update_profile_sp

sysmail_update_profileaccount_sp

See Also

Database Mail


Additional resources

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023

Additional resources

In this article

  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023