| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
DATEFROM |
date | ![]() |
||
DATETO |
date | ![]() |
||
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. |
SPONSORTYPECODE |
tinyint | Default = 0 | 0=Sponsor, 1=Sponsorship recipient, 2=Sponsorship donor | |
SPONSORTYPE |
nvarchar(21) (Computed) | ![]() |
CASE [SPONSORTYPECODE] WHEN 0 THEN N'Sponsor' WHEN 1 THEN N'Sponsorship recipient' WHEN 2 THEN N'Sponsorship donor' END | Provides a translation for the 'SPONSORTYPECODE' field. |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
CONSTITUENTID |
uniqueidentifier | CONSTITUENT.LOCALID | FK to CONSTITUENT | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_SPONSORDATERANGE_CONSTITUENTID |
CONSTITUENTID | |||
IX_SPONSORDATERANGE_DATEADDED |
DATEADDED | ![]() |
||
IX_SPONSORDATERANGE_DATECHANGED |
DATECHANGED | |||
PK_SPONSORDATERANGE |
ID | ![]() |
![]() |
| Trigger Name | Description |
|---|---|
TR_SPONSORDATERANGE_AUDIT_UPDATE |
|
TR_SPONSORDATERANGE_AUDIT_DELETE |
|
TR_SPONSORDATERANGE_AUDIT_ETLDELETEDID |

ID
DATEFROM
TSLONG
CONSTITUENTID
IX_SPONSORDATERANGE_CONSTITUENTID
IX_SPONSORDATERANGE_DATEADDED