Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 LENGTH tinyint   Default = 1 The maximum length of this position.
 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
 SOURCECODEID uniqueidentifier   MKTSOURCECODE.ID FK to MKTSOURCECODE
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 MKTSOURCECODEPARTDEFINITIONID uniqueidentifier MKTSOURCECODEPARTDEFINITION.ID FK to MKTSOURCECODEPARTDEFINITION

Index Name Field(s) Unique Primary Clustered
 IX_MKTSOURCECODEITEM_DATEADDED DATEADDED    
 IX_MKTSOURCECODEITEM_DATECHANGED DATECHANGED      
 IX_MKTSOURCECODEITEM_ID ID      
 IX_MKTSOURCECODEITEM_MKTSOURCECODEPARTDEFINITIONID MKTSOURCECODEPARTDEFINITIONID      
 PK_MKTSOURCECODEITEM ID  
 UIX_MKTSOURCECODEITEM_SOURCECODEID_MKTSOURCECODEPARTDEFINITIONID SOURCECODEID, MKTSOURCECODEPARTDEFINITIONID    

Trigger Name Description
 TR_MKTSOURCECODEITEM_AUDIT_UPDATE
 TR_MKTSOURCECODEITEM_AUDIT_DELETE

Referenced by Field
 MKTSOURCECODEVALIDPARTVALUES MKTSOURCECODEITEMID

Entity-Relationship diagram of this table