EMAILSTATUSGENERALPURPOSE (4.0SP14)

Holds live and historical information on emails that have are or were in the EMAILQUEUEGENERALPURPOSE table. Allowing auditing so that change history is preserved.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

EMAILQUEUEGENERALPURPOSEID

uniqueidentifier

true

This references the email in the EMAILQUEUEGENERALPURPOSE table. Once the record has been removed from the queue, it will remain in the EMAILSTATUSGENERALPURPOSE table, so this field will be set to null.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

MERGEROWSPERCHUNK

int

false

0

The number of merge rows being processed per chunk.

LASTMERGEROWPROCESSED

int

false

0

The sequentialid of the last merge row processed.

RETRYNUMBER

tinyint

false

0

The retry number currently being processed. Written to this table for historical purposes.

STATUS

tinyint

false

0

Contains a status represented by an enum in the Email Services code

EXTERNALJOBIDENTITY

uniqueidentifier

false

Contains a guid that can be used to reference the job in an external email system.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

UNIQUEIDFIELDNAME

nvarchar(128)

false

''

Name of field that identifies the unique field of the view data.

EMAILADDRESSFIELDNAME

nvarchar(128)

false

''

Name of field that identifies the email address field of the view data.

EMAILDISPLAYNAMEFIELDNAME

nvarchar(128)

false

''

Name of field that identifies the email display name field of the view data.

MERGETOKEN

nvarchar(3)

false

''

Array of characters that signify the merge fields in the message content.

PRIORITY

int

false

0

This priority is calculated based off the source, type, and date of the email. Stored here for reporting purposes.

REQUESTEDSENT

int

false

0

The number of email requested to be sent.

ACTUALSENT

int

false

0

The number of emails actually sent.

EMAILHEADER

xml

true

Contains xml with email header.

INTERNALJOBIDENTITY

uniqueidentifier

true

The guid of the instance id of the global change that processed this email. Used for reporting.

STATUSMESSAGE

xml

true

Contains xml with detail status information either from Email Services code or Shared Services code.

CONSUMERSTARTDATE

datetime

true

The consumer start date passed in by the calling application.

CONSUMERENDDATE

datetime

true

The consumer end date passed in by the calling application.

CLIENTPROCESSSTARTDATE

datetime

true

A timestamp indicating when processing started on the email job.

CLIENTPROCESSENDDATE

datetime

true

A timestamp indicating when processing ended on the email job.

SERVERMODIFIEDDATE

datetime

true

PROCESSAFTERDATE

datetime

true

EXTERNALSERVICESTATUS

tinyint

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_EMAILSTATUSGENERALPURPOSE_DATEADDED

DATEADDED

False

False

True

IX_EMAILSTATUSGENERALPURPOSE_DATECHANGED

DATECHANGED

False

False

False

IX_EMAILSTATUSGENERALPURPOSE_EMAILQUEUEGENERALPURPOSEID_EXTERNALJOBIDENTITY

EMAILQUEUEGENERALPURPOSEID

EXTERNALJOBIDENTITY

False

False

False

PK_EMAILSTATUSGENERALPURPOSE

ID

True

True

False

Triggers
Trigger Name Description

TR_EMAILSTATUSGENERALPURPOSE_AUDIT_UPDATE

TR_EMAILSTATUSGENERALPURPOSE_AUDIT_DELETE

Referenced by
Referenced by Field

COMMUNICATIONLETTER

EMAILSTATUSID