MKTSPONSORSHIPMAILINGTEMPLATERULE (4.0SP20)

Stores information pertaining to a sponsorship effort template rule.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SPONSORSHIPMAILINGTEMPLATEID

uniqueidentifier

false

The sponsorship effort template to which the rule belongs.

SEGMENTID

uniqueidentifier

true

The segment to use as the communication segment.

PACKAGEID

uniqueidentifier

true

The package associated with the segment.

ASKLADDERID

uniqueidentifier

true

The ask ladder associated with this segment.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

PARTDEFINITIONVALUESID

uniqueidentifier

true

FK to MKTSOURCECODEPARTDEFINITIONVALUES

TESTPARTDEFINITIONVALUESID

uniqueidentifier

true

FK to MKTSOURCECODEPARTDEFINITIONVALUES

ADDRESSPROCESSINGOPTIONID

uniqueidentifier

true

If mailing-level options are overridden, the address processing options to be used for this segment.

NAMEFORMATPARAMETERID

uniqueidentifier

true

If mailing-level options are overridden, the name format options to be used for this segment.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this sponsorship template rule.

CURRENCYEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert from the amounts to organization amount.

Fields
Field Field Type Null Notes Description

CODE

nvarchar(10)

false

''

A unique code that identifies the segment.

TESTSEGMENTCODE

nvarchar(10)

false

''

A code that identifies the type of test segment.

RESPONSERATE

decimal(5, 2)

false

0

The expected response rate for the segment.

GIFTAMOUNT

money

false

0

The average expected gift amount per donor for the segment.

SEQUENCE

int

false

0

The order of segments for each sponsorship effort.

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.

OVERRIDEADDRESSPROCESSING

bit

false

0

Determines whether or not to override the mailing-level address processing options when performing calculations and exporting this segment.

USEADDRESSPROCESSING

bit

false

0

If mailing-level options are overridden, determines whether or not to apply address processing options when performing calculations and exporting this segment.

ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPECODE

tinyint

false

0

If mailing-level options are overridden, indicates the type of date to be used when considering seasonal addresses.

ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPE

nvarchar(15) (Computed)

true

Provides a translation for the 'ADDRESSPROCESSINGOPTIONSEASONALASOFDATETYPECODE' field.

ADDRESSPROCESSINGOPTIONSEASONALASOFDATE

datetime

true

If mailing-level options are overridden, the specific date to be used when considering seasonal addresses.

ORGANIZATIONGIFTAMOUNT

money

false

0

The average expected gift amount per donor for the segment in organization currency.

EXCLUDE

bit

false

0

Indicates that this segment functions as an inline exclusion.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_ADDRESSPROCESSINGOPTIONID

ADDRESSPROCESSINGOPTIONID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_ASKLADDERID

ASKLADDERID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_CURRENCYEXCHANGERATEID

CURRENCYEXCHANGERATEID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_DATEADDED

DATEADDED

False

False

True

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_DATECHANGED

DATECHANGED

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_NAMEFORMATPARAMETERID

NAMEFORMATPARAMETERID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_PACKAGEID

PACKAGEID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_PARTDEFINITIONVALUESID

PARTDEFINITIONVALUESID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_SEGMENTID

SEGMENTID

False

False

False

IX_MKTSPONSORSHIPMAILINGTEMPLATERULE_TESTPARTDEFINITIONVALUESID

TESTPARTDEFINITIONVALUESID

False

False

False

PK_MKTSPONSORSHIPMAILINGTEMPLATERULE

ID

True

True

False

UIX_MKTSPONSORSHIPMAILINGTEMPLATERULE_SPONSORSHIPMAILINGTEMPLATEID_SEGMENTID

SPONSORSHIPMAILINGTEMPLATEID

SEGMENTID

True

False

False

Triggers
Trigger Name Description

TR_MKTSPONSORSHIPMAILINGTEMPLATERULE_AUDIT_UPDATE

TR_MKTSPONSORSHIPMAILINGTEMPLATERULE_AUDIT_DELETE

TR_MKTSPONSORSHIPMAILINGTEMPLATERULE_INSERTUPDATE_CURRENCY