Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 REASONTYPECODE tinyint   Default = 0 The state/action this reason applies to.
 REASON nvarchar(100)   Default = ''
 TRANSFERSPONSORSFORINELIGIBLECHILD bit   Default = 0 Whether or not to transfer sponsors when making a child ineligible for this reason.
 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) CONVERT(bigint, TS) Numeric representation of the timestamp.
 REASONTYPE nvarchar(32) (Computed) CASE [REASONTYPECODE] WHEN 0 THEN N'Child - Mark pending eligibility' WHEN 1 THEN N'Child - Mark ineligible' WHEN 2 THEN N'Project - Mark closed' WHEN 3 THEN N'Location - Mark inactive' WHEN 4 THEN N'Location - Mark closed' WHEN 5 THEN N'Sponsorship - Transfer' WHEN 6 THEN N'Sponsorship - Cancel' WHEN 7 THEN N'Sponsorship - Terminate' WHEN 8 THEN N'Sponsorship - Reactivate' WHEN 9 THEN N'Sponsorship - Reassign' WHEN 10 THEN N'Project - Mark pending' WHEN 11 THEN N'Sponsorship - Expiration' END Provides a translation for the 'REASONTYPECODE' field.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_SPONSORSHIPREASON_DATEADDED DATEADDED    
 IX_SPONSORSHIPREASON_DATECHANGED DATECHANGED      
 PK_SPONSORSHIPREASON ID  
 UIX_SPONSORSHIPREASON_REASONTYPECODE_REASON REASONTYPECODE, REASON    

Trigger Name Description
 TR_SPONSORSHIPREASON_AUDIT_UPDATE
 TR_SPONSORSHIPREASON_AUDIT_DELETE

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

Entity-Relationship diagram of this table