Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(50)   Default = '' A short description of what is contained in this the position.
 ITEMTYPECODE tinyint   Default = 0 The type for this part of the source code.
 DESCRIPTION nvarchar(255)   Default = '' A short description for this position.
 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.
 ITEMTYPE nvarchar(16) (Computed) CASE [ITEMTYPECODE] WHEN 0 THEN N'Marketing Effort' WHEN 1 THEN N'Segment' WHEN 2 THEN N'Package' WHEN 3 THEN N'Channel' WHEN 5 THEN N'User Defined' WHEN 6 THEN N'List' WHEN 7 THEN N'Test Segment' END Provides a translation for the 'ITEMTYPECODE' field.
 AUTOINCREMENTVALUE bit   Default = 0 The option that determines whether to automatically increment the code value when selected in a dropdown.

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

Index Name Field(s) Unique Primary Clustered
 IX_MKTSOURCECODEPARTDEFINITION_DATEADDED DATEADDED    
 IX_MKTSOURCECODEPARTDEFINITION_DATECHANGED DATECHANGED      
 PK_MKTSOURCECODEPARTDEFINITION ID  
 UC_MKTSOURCECODEPARTDEFINITION_NAME NAME    
 UIX_MKTSOURCECODEPARTDEFINITION_ID ID    

Trigger Name Description
 TR_MKTSOURCECODEPARTDEFINITION_AUDIT_UPDATE
 TR_MKTSOURCECODEPARTDEFINITION_AUDIT_DELETE

Referenced by Field
 MKTSOURCECODEITEM MKTSOURCECODEPARTDEFINITIONID
 MKTSOURCECODEMAPPART MKTSOURCECODEPARTDEFINITIONID
 MKTSOURCECODEPARTDEFINITIONVALUES MKTSOURCECODEPARTDEFINITIONID

Entity-Relationship diagram of this table