MKTCONSTITUENTFILEIMPORTPROCESS
Stores information pertaining to a segmented house file import.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) (Computed) |
yes |
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) |
yes |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
SEGMENTATIONID |
uniqueidentifier |
|
MKTSEGMENTATION.ID
|
The marketing effort for the segmented house file |
LISTLAYOUTID |
uniqueidentifier |
yes |
MKTLISTLAYOUT.ID
|
Foreign key to MKTLISTLAYOUT. The list layout used to import records for this segment. |
CATEGORYCODEID |
uniqueidentifier |
yes |
MKTCONSTITUENTFILECATEGORYCODE.ID
|
Category for a segmented house file |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
RECORDTYPEID |
uniqueidentifier |
yes |
RECORDTYPE.ID
|
The record type of the IDs in the segmented house file. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_MKTCONSTITUENTFILEIMPORTPROCESS_CATEGORYCODEID |
CATEGORYCODEID |
|
|
|
IX_MKTCONSTITUENTFILEIMPORTPROCESS_DATEADDED |
DATEADDED |
|
|
yes |
IX_MKTCONSTITUENTFILEIMPORTPROCESS_DATECHANGED |
DATECHANGED |
|
|
|
IX_MKTCONSTITUENTFILEIMPORTPROCESS_LISTLAYOUTID |
LISTLAYOUTID |
|
|
|
IX_MKTCONSTITUENTFILEIMPORTPROCESS_RECORDTYPEID |
RECORDTYPEID |
|
|
|
IX_MKTCONSTITUENTFILEIMPORTPROCESS_SEGMENTATIONID |
SEGMENTATIONID |
|
|
|
PK_MKTCONSTITUENTFILEIMPORTPROCESS |
ID |
yes |
yes |
|
Triggers
Referenced by