SPONSORSHIPLOCATIONCLOSEPROCESS

Sponsorship Location Close process parameters.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(515) Default = '' The name of the parameter set.
PROGRAMMAPPINGS xml yes Mappings by program to control the transfers.
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.
CREATEOUTPUTIDSET bit Default = 0 Designates whether or not an ID set should be created as a result of the mark location closed process.
OUTPUTIDSETTYPECODE tinyint Default = 0 0=Transferred source sponsorships, 1=Transferred target sponsorships
OUTPUTIDSETTYPE nvarchar(31) (Computed) yes CASE [OUTPUTIDSETTYPECODE] WHEN 0 THEN N'Transferred source sponsorships' WHEN 1 THEN N'Transferred target sponsorships' END Provides a translation for the 'OUTPUTIDSETTYPECODE' field.
OUTPUTIDSETNAME nvarchar(100) Default = '' The name of the output ID set to be created by the mark location closed process.
OVERWRITEOUTPUTIDSET bit Default = 0 Designates whether or not to overwrite the output ID set if one with the same name already exists.
COMMENT nvarchar(255) Default = '' Location closing notes

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier SPONSORSHIPLOCATION.ID Primary Key.
SPONSORSHIPREASONID uniqueidentifier yes SPONSORSHIPREASON.ID The reason for marking the location closed.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_SPONSORSHIPLOCATIONCLOSEPROCESS_DATEADDED DATEADDED yes
IX_SPONSORSHIPLOCATIONCLOSEPROCESS_DATECHANGED DATECHANGED
IX_SPONSORSHIPLOCATIONCLOSEPROCESS_SPONSORSHIPREASONID SPONSORSHIPREASONID
PK_SPONSORSHIPLOCATIONCLOSEPROCESS ID yes yes
UC_SPONSORSHIPLOCATIONCLOSEPROCESS_NAME NAME yes

Triggers

Trigger Name Description
TR_SPONSORSHIPLOCATIONCLOSEPROCESS_AUDIT_UPDATE
TR_SPONSORSHIPLOCATIONCLOSEPROCESS_AUDIT_DELETE

Referenced by

Referenced by Field
SPONSORSHIPLOCATIONCLOSEPROCESSSTATUS PARAMETERSETID