Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' Name of the tribute letter code.
 DESCRIPTION nvarchar(255)   Default = '' Description for the tribute letter code.
 WORDTEMPLATEFILENAME nvarchar(255)   Default = '' Filename of the word template to use for this tribute letter.
 WORDFILE varbinary The actual template file to use for this tribute letter.
 ISACTIVE bit   Default = 1 Indicates whether or not the tribute letter code is active.
 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.
 CUSTOMPARAMETERDATAFORMITEM xml Custom parameters for the query view chosen for this letter code.

Foreign Key Field Type Null Notes Description
 QUERYVIEWID uniqueidentifier QUERYVIEWCATALOG.ID A foreign key to the query view used for this tribute letter.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 EXPORTDEFINITIONID uniqueidentifier EXPORTDEFINITION.ID A foreign key to the export definition used for this letter.

Index Name Field(s) Unique Primary Clustered
 IX_TRIBUTELETTERCODE_DATEADDED DATEADDED    
 IX_TRIBUTELETTERCODE_DATECHANGED DATECHANGED      
 PK_TRIBUTELETTERCODE ID  
 UC_TRIBUTELETTERCODE_NAME NAME    

Trigger Name Description
 TR_TRIBUTELETTERCODE_AUDIT_UPDATE
 TR_TRIBUTELETTERCODE_AUDIT_DELETE

Referenced by Field
 REVENUETRIBUTELETTER TRIBUTELETTERCODEID
 TRIBUTEACKNOWLEDGEE TRIBUTELETTERCODEID
 TRIBUTEACKNOWLEDGEMENTPROCESS TRIBUTELETTERCODEID
 TRIBUTELETTERCODESITE TRIBUTELETTERCODEID

Entity-Relationship diagram of this table