MKTSPONSORSHIPMAILINGTEMPLATE

Stores information pertaining to a sponsorship effort template

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
CODE nvarchar(10) Default = '' Source code component for this sponsorship effort template.
NAME nvarchar(50) Default = '' A name for the sponsorship effort template.
DESCRIPTION nvarchar(255) Default = '' A description about the sponsorship effort template.
USEADDRESSPROCESSING bit Default = 0 Determines whether or not to apply address processing options when performing mailing calculations and exporting a mailing.
ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPECODE tinyint Default = 0 Indicates the type of date to be used when considering seasonal addresses.
ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPE nvarchar(15) (Computed) yes CASE [ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPECODE] WHEN 0 THEN N'Today' WHEN 1 THEN N<Specific date> END Provides a translation for the 'ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPECODE' field.
ADDRESSPROCESSINGOPTIONSEASONALASOFDATE datetime yes The specific date to be used when considering seasonal addresses.
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.
RUNACTIVATEANDEXPORT bit Default = 0 Run activate and export upon process completion.
RUNSEGMENTATIONSEGMENTREFRESHPROCESS bit Default = 0 Indicates whether the marketing effort segment refresh process should be run prior to the calculation of segment record counts.
CACHESOURCEANALYSISRULEDATA bit Default = 1 Indicates whether source analysis rule data should be cached during activation.
RUNMARKETINGEXCLUSIONSREPORT bit Default = 1

Foreign Keys

Foreign Key Field Type Null Notes Description
SOURCECODEID uniqueidentifier yes MKTSOURCECODE.ID The source code layout used for this sponsorship effort template.
SITEID uniqueidentifier yes SITE.ID The site to which this sponsorship mailing template belongs.
ADDRESSPROCESSINGOPTIONID uniqueidentifier yes ADDRESSPROCESSINGOPTION.ID The address processing options to be used for this effort.
NAMEFORMATPARAMETERID uniqueidentifier yes NAMEFORMATPARAMETER.ID The name format options to be used for this effort.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
PARTDEFINITIONVALUESID uniqueidentifier yes MKTSOURCECODEPARTDEFINITIONVALUES.ID FK to MKTSOURCECODEPARTDEFINITIONVALUES
BASECURRENCYID uniqueidentifier yes CURRENCY.ID The base currency associated with this sponsorship template.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTSPONSORSHIPMAILINGTEMPLATE_ADDRESSPROCESSINGOPTIONID ADDRESSPROCESSINGOPTIONID
IX_MKTSPONSORSHIPMAILINGTEMPLATE_BASECURRENCYID BASECURRENCYID
IX_MKTSPONSORSHIPMAILINGTEMPLATE_DATEADDED DATEADDED yes
IX_MKTSPONSORSHIPMAILINGTEMPLATE_DATECHANGED DATECHANGED
IX_MKTSPONSORSHIPMAILINGTEMPLATE_NAMEFORMATPARAMETERID NAMEFORMATPARAMETERID
IX_MKTSPONSORSHIPMAILINGTEMPLATE_PARTDEFINITIONVALUESID PARTDEFINITIONVALUESID
IX_MKTSPONSORSHIPMAILINGTEMPLATE_SITEID SITEID
IX_MKTSPONSORSHIPMAILINGTEMPLATE_SOURCECODEID SOURCECODEID
PK_MKTSPONSORSHIPMAILINGTEMPLATE ID yes yes
UC_MKTSPONSORSHIPMAILINGTEMPLATE_NAME NAME yes

Triggers

Trigger Name Description
TR_MKTSPONSORSHIPMAILINGTEMPLATE_INSERTUPDATE_CURRENCY
TR_MKTSPONSORSHIPMAILINGTEMPLATE_AUDIT_UPDATE
TR_MKTSPONSORSHIPMAILINGTEMPLATE_AUDIT_DELETE

Referenced by

Referenced by Field
MKTSOURCECODEPART SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGPROCESS SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEACTIVATED MKTSPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEAPPEAL SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEASKLADDEROVERRIDE SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEEXPORT SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEFILTERSELECTION SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATEKPI SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATERULE SPONSORSHIPMAILINGTEMPLATEID
MKTSPONSORSHIPMAILINGTEMPLATESEED SPONSORSHIPMAILINGTEMPLATEID