MKTSPONSORSHIPMAILINGTEMPLATEEXPORT

Stores export information pertaining to a sponsorship template.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DESCRIPTION nvarchar(255) Default = '' A description of the export.
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.

Foreign Keys

Foreign Key Field Type Null Notes Description
SPONSORSHIPMAILINGTEMPLATEID uniqueidentifier MKTSPONSORSHIPMAILINGTEMPLATE.ID The template this export information belongs to.
MAILEXPORTDEFINITIONID uniqueidentifier yes EXPORTDEFINITION.ID The export definition to use when exporting segments in an activated sponsorship effort with mail packages not already tied to an export definition.
EMAILEXPORTDEFINITIONID uniqueidentifier yes EXPORTDEFINITION.ID The export definition to use when exporting segments in an activated sponsorship effort with email packages not already tied to an export definition.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
PHONEEXPORTDEFINITIONID uniqueidentifier yes EXPORTDEFINITION.ID The export definition to use when exporting segments in an activated sponsorship effort with phone packages not already associated with an export definition.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_DATEADDED DATEADDED yes
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_DATECHANGED DATECHANGED
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_EMAILEXPORTDEFINITIONID EMAILEXPORTDEFINITIONID
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_MAILEXPORTDEFINITIONID MAILEXPORTDEFINITIONID
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_PHONEEXPORTDEFINITIONID PHONEEXPORTDEFINITIONID
IX_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_SPONSORSHIPMAILINGTEMPLATEID SPONSORSHIPMAILINGTEMPLATEID
PK_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT ID yes yes

Triggers

Trigger Name Description
TR_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_AUDIT_UPDATE
TR_MKTSPONSORSHIPMAILINGTEMPLATEEXPORT_AUDIT_DELETE