MKTEXPORTDEFINITIONOUTPUTFIELD

Stores information pertaining to an export definition output field.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(255) Default = '' A name for the output field.
QUERYFIELD nvarchar(255) Default = '' The field name of this output field from the query view, or the table name, if it's a smart field.
SEQUENCE int Default = 0 The sequence of the output 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.
TYPECODE tinyint Default = 0 The type of this output field
TYPE nvarchar(17) (Computed) yes CASE [TYPECODE] WHEN 0 THEN N'Query view' WHEN 1 THEN N'Smart field' WHEN 2 THEN N'Custom query view' WHEN 3 THEN N'Smart field group' END Provides a translation for the 'TYPECODE' field.
VIEWPATH nvarchar(1500) Default = '' The queryview path to this field.

Foreign Keys

Foreign Key Field Type Null Notes Description
EXPORTDEFINITIONID uniqueidentifier MKTEXPORTDEFINITION.ID The export definition to which this output field belongs.
QUERYVIEWCATALOGID uniqueidentifier QUERYVIEWCATALOG.ID The query view containing this output field.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CUSTOMQUERYVIEWCATALOGID uniqueidentifier yes QUERYVIEWCATALOG.ID The custom query view containing this output field.
CUSTOMQUERYVIEWRELATIONSHIPID uniqueidentifier yes QUERYVIEWRELATIONSHIP.ID The custom query view relationship record describing this output field's relationship to its parent query view.

Indexes

Index Name Fields Unique Primary Clustered
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATEADDED DATEADDED yes
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATECHANGED DATECHANGED
PK_MKTEXPORTDEFINITIONOUTPUTFIELD ID yes yes
UIX_MKTEXPORTDEFINITIONOUTPUTFIELD_EXPORTDEFINITIONID_NAME_QUERYVIEWCATALOGID EXPORTDEFINITIONID, NAME, QUERYVIEWCATALOGID yes

Triggers

Trigger Name Description
TR_MKTEXPORTDEFINITIONOUTPUTFIELD_AUDIT_UPDATE
TR_MKTEXPORTDEFINITIONOUTPUTFIELD_AUDIT_DELETE