Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100) (Computed) dbo.[UFN_MKTCONSTITUENTFILEIMPORT_GETNAME]([ID]) The name of the segmented house file to be imported.
 FILENAME nvarchar(255)   Default = '' The original file name for the imported file.
 QUANTITY int   Default = 0 Number of records imported.
 STATUSCODE tinyint   Default = 0 Status of the segmented house file import.
 STATUS nvarchar(25) (Computed) CASE [STATUSCODE] WHEN 0 THEN N'Loading' WHEN 1 THEN N'Completed successfully' WHEN 2 THEN N'Completed with exceptions' WHEN 3 THEN N'Failed' END Provides a translation for the 'STATUSCODE' 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) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 SEGMENTATIONID uniqueidentifier   MKTSEGMENTATION.ID The marketing effort for the segmented house file
 LISTLAYOUTID uniqueidentifier MKTLISTLAYOUT.ID Foreign key to MKTLISTLAYOUT. The list layout used to import records for this segment.
 CATEGORYCODEID uniqueidentifier MKTCONSTITUENTFILECATEGORYCODE.ID Category for a segmented house file
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 RECORDTYPEID uniqueidentifier RECORDTYPE.ID The record type of the IDs in the segmented house file.

Index Name Field(s) Unique Primary Clustered
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_CATEGORYCODEID CATEGORYCODEID      
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_DATEADDED DATEADDED    
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_DATECHANGED DATECHANGED      
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_LISTLAYOUTID LISTLAYOUTID      
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_RECORDTYPEID RECORDTYPEID      
 IX_MKTCONSTITUENTFILEIMPORTPROCESS_SEGMENTATIONID SEGMENTATIONID      
 PK_MKTCONSTITUENTFILEIMPORTPROCESS ID  

Trigger Name Description
 TR_MKTCONSTITUENTFILEIMPORTPROCESS_AUDIT_UPDATE
 TR_MKTCONSTITUENTFILEIMPORTPROCESS_AUDIT_DELETE

Referenced by Field
 MKTCONSTITUENTFILEIMPORTPROCESSEXPORTFORMAT PARAMETERSETID
 MKTCONSTITUENTFILEIMPORTPROCESSSTATUS PARAMETERSETID

Entity-Relationship diagram of this table