SPONSORSHIP (4.0SP20)

Table that holds the relationship between a sponsor and a sponsorship opportunity

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SPONSORSHIPCOMMITMENTID

uniqueidentifier

false

The commitment of which this sponsorship is a part.

CONSTITUENTID

uniqueidentifier

false

FK to CONSTITUENT

SPONSORSHIPPROGRAMID

uniqueidentifier

false

FK to SPONSORSHIPPROGRAM

SPONSORSHIPOPPORTUNITYID

uniqueidentifier

false

FK to SPONSORSHIPOPPORTUNITY

REVENUESPLITID

uniqueidentifier

true

The recurring gift split against which payments will be applied for this sponsorship.

SPONSORSHIPLOCATIONID

uniqueidentifier

true

The location preference for this sponsorship.

SPONSORSHIPOPPORTUNITYAGERANGEID

uniqueidentifier

true

Points to a custom Sponsorship Opportunity Age Range definition in the SPONSORSHIPOPPORTUNITYAGERANGE table, for child records only.

SPROPPPROJECTCATEGORYCODEID

uniqueidentifier

true

FK to SPROPPPROJECTCATEGORYCODE

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

EXPIRATIONREASONID

uniqueidentifier

true

FK to SPONSORSHIPREASON

Fields
Field Field Type Null Notes Description

STATUSCODE

tinyint

false

1

Status of this sponsorship.

STATUS

nvarchar(8) (Computed)

true

Provides a translation for the 'STATUSCODE' field.

STARTDATE

date

true

ENDDATE

date

true

PLANNEDENDDATE

date

true

CHILDGENDERCODE

tinyint

false

0

0=Greatest need, 1=Male, 2=Female

CHILDGENDER

nvarchar(13) (Computed)

true

Provides a translation for the 'CHILDGENDERCODE' field.

ISHIVPOSITIVECODE

tinyint

false

0

0=Greatest need, 1=Yes, 2=No

ISHIVPOSITIVE

nvarchar(13) (Computed)

true

Provides a translation for the 'ISHIVPOSITIVECODE' field.

HASCONDITIONCODE

tinyint

false

0

0=Greatest need, 1=Yes, 2=No

HASCONDITION

nvarchar(13) (Computed)

true

Provides a translation for the 'HASCONDITIONCODE' field.

ISORPHANEDCODE

tinyint

false

0

0=Greatest need, 1=Yes, 2=No

ISORPHANED

nvarchar(13) (Computed)

true

Provides a translation for the 'ISORPHANEDCODE' field.

ISSOLESPONSORSHIP

bit

false

0

Indicates that this sponsorship is the sole sponsorship for a child.

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.

ISMOSTRECENTFORCOMMITMENT

bit

false

0

Indicates the active or last sponsorship for a commitment.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SPONSORSHIP_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_SPONSORSHIP_DATEADDED

DATEADDED

False

False

True

IX_SPONSORSHIP_DATECHANGED

DATECHANGED

False

False

False

IX_SPONSORSHIP_EXPIRATIONREASONID

EXPIRATIONREASONID

False

False

False

IX_SPONSORSHIP_REVENUESPLITID

REVENUESPLITID

False

False

False

IX_SPONSORSHIP_SPONSORSHIPCOMMITMENTID

SPONSORSHIPCOMMITMENTID

False

False

False

IX_SPONSORSHIP_SPONSORSHIPLOCATIONID

SPONSORSHIPLOCATIONID

False

False

False

IX_SPONSORSHIP_SPONSORSHIPOPPORTUNITYAGERANGEID

SPONSORSHIPOPPORTUNITYAGERANGEID

False

False

False

IX_SPONSORSHIP_SPONSORSHIPOPPORTUNITYID

SPONSORSHIPOPPORTUNITYID

False

False

False

IX_SPONSORSHIP_SPONSORSHIPPROGRAMID

SPONSORSHIPPROGRAMID

False

False

False

IX_SPONSORSHIP_SPROPPPROJECTCATEGORYCODEID

SPROPPPROJECTCATEGORYCODEID

False

False

False

PK_SPONSORSHIP

ID

True

True

False

Triggers
Trigger Name Description

TR_SPONSORSHIP_AUDIT_ETLDELETEDID

TR_SPONSORSHIP_AUDIT_UPDATE

TR_SPONSORSHIP_AUDIT_DELETE

Referenced by
Referenced by Field

MKTSPONSORSHIPMAILINGTEMPLATEACTIVATED

SPONSORSHIPID

SALESORDERITEMSPONSORSHIP

SPONSORSHIPID

SPONSORSHIPPAYMENT

SPONSORSHIPID

SPONSORSHIPRECURRINGADDITIONALGIFT

SPONSORSHIPID

SPONSORSHIPTRANSACTION

CONTEXTSPONSORSHIPID

SPONSORSHIPTRANSACTION

TARGETSPONSORSHIPID

SPONSORSHIPTRANSACTION

DECLINEDSPONSORSHIPID