Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 MESSAGETYPECODE tinyint   Default = 0 0=Warning, 1=Error
 MESSAGETYPE nvarchar(7) (Computed) CASE [MESSAGETYPECODE] WHEN 0 THEN N'Warning' WHEN 1 THEN N'Error' END Provides a translation for the 'MESSAGETYPECODE' field.
 MESSAGE nvarchar(2000)   Default = ''
 SEQUENCE int   Default = 0
 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.

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

Index Name Field(s) Unique Primary Clustered
 IX_BATCHAMPROIMPORTMESSAGE_DATEADDED DATEADDED    
 IX_BATCHAMPROIMPORTMESSAGE_DATECHANGED DATECHANGED      
 PK_BATCHAMPROIMPORTMESSAGE ID  

Trigger Name Description
 TR_BATCHAMPROIMPORTMESSAGE_AUDIT_UPDATE
 TR_BATCHAMPROIMPORTMESSAGE_AUDIT_DELETE

Entity-Relationship diagram of this table