SPONSORSHIPREASON (4.0SP17)

Reasons for various states/actions within sponsorship.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

REASONTYPECODE

tinyint

false

0

The state/action this reason applies to.

REASON

nvarchar(100)

false

''

TRANSFERSPONSORSFORINELIGIBLECHILD

bit

false

0

Whether or not to transfer sponsors when making a child ineligible for this reason.

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.

REASONTYPE

nvarchar(32) (Computed)

true

Provides a translation for the 'REASONTYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_SPONSORSHIPREASON_DATEADDED

DATEADDED

False

False

True

IX_SPONSORSHIPREASON_DATECHANGED

DATECHANGED

False

False

False

PK_SPONSORSHIPREASON

ID

True

True

False

UIX_SPONSORSHIPREASON_REASONTYPECODE_REASON

REASONTYPECODE

REASON

True

False

False

Triggers
Trigger Name Description

TR_SPONSORSHIPREASON_AUDIT_ETLDELETEDID

TR_SPONSORSHIPREASON_AUDIT_UPDATE

TR_SPONSORSHIPREASON_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHSPONSORSHIP

EXPIRATIONREASONID

SALESORDERITEMSPONSORSHIP

EXPIRATIONREASONID

SPONSORSHIP

EXPIRATIONREASONID

SPONSORSHIPLOCATION

SPONSORSHIPREASONID

SPONSORSHIPLOCATIONCLOSEPROCESS

SPONSORSHIPREASONID

SPONSORSHIPOPPORTUNITY

SPONSORSHIPREASONID

SPONSORSHIPOPPORTUNITYREASON

SPONSORSHIPREASONID

SPONSORSHIPOPPORTUNITYTRANSFERPROCESS

SPONSORSHIPREASONID

SPONSORSHIPTERMINATEPROCESS

SPONSORSHIPREASONID

SPONSORSHIPTRANSACTION

SPONSORSHIPREASONID

SPONSORSHIPTRANSFERPROCESS

SPONSORSHIPREASONID