BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE

Auto-generated table to handle error/rejection/exception messages for the BATCHRE7INTEGRATIONGIVINGSUMMARY batch table

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
MESSAGETEXT nvarchar(2000) Default = ''
MESSAGETYPECODE tinyint Default = 0 0=General error, 1=Duplicate record error
MESSAGETYPE nvarchar(22) (Computed) yes CASE [MESSAGETYPECODE] WHEN 0 THEN N'General error' WHEN 1 THEN N'Duplicate record error' END Provides a translation for the 'MESSAGETYPECODE' field.
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.

Foreign Keys

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

Indexes

Index Name Fields Unique Primary Clustered
IX_BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE_DATEADDED DATEADDED yes
IX_BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE_DATECHANGED DATECHANGED
PK_BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE ID yes yes

Triggers

Trigger Name Description
TR_BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE_AUDIT_UPDATE
TR_BATCHRE7INTEGRATIONGIVINGSUMMARYBATCHUSERMESSAGE_AUDIT_DELETE