DATABASEMAILSETTINGS

This table stores information needed to send alerts using Database Mail.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
PROFILENAME nvarchar(128) Default = '' The name of the profile in msdb.dbo.sysmail_profile used to send alerts.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
ENABLED bit Default = 0 When on, email alerts are enabled.
APPLICATIONLINKFORMATCODE tinyint Default = 1 Indicates how links to the application should be built.
APPLICATIONLINKFORMAT nvarchar(21) (Computed) yes CASE [APPLICATIONLINKFORMATCODE] WHEN 0 THEN N'Windows client format' WHEN 1 THEN N'Web client format' END

Foreign Keys

Foreign Key Field Type Null Notes Description
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_DATABASEMAILSETTINGS_DATEADDED DATEADDED yes
IX_DATABASEMAILSETTINGS_DATECHANGED DATECHANGED
PK_DATABASEMAILSETTINGS ID yes yes

Triggers

Trigger Name Description
TR_DATABASEMAILSETTINGS_LIMIT
TR_DATABASEMAILSETTINGS_AUDIT_UPDATE
TR_DATABASEMAILSETTINGS_AUDIT_DELETE