| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| 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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
TYPECODE |
tinyint | Default = 0 | The type of this output field | |
TYPE |
nvarchar(17) (Computed) | ![]() |
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 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 | ![]() |
QUERYVIEWCATALOG.ID | The custom query view containing this output field. |
CUSTOMQUERYVIEWRELATIONSHIPID |
uniqueidentifier | ![]() |
QUERYVIEWRELATIONSHIP.ID | The custom query view relationship record describing this output field's relationship to its parent query view. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATEADDED |
DATEADDED | ![]() |
||
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATECHANGED |
DATECHANGED | |||
PK_MKTEXPORTDEFINITIONOUTPUTFIELD |
ID | ![]() |
![]() |
|
UIX_MKTEXPORTDEFINITIONOUTPUTFIELD_EXPORTDEFINITIONID_NAME_QUERYVIEWCATALOGID |
EXPORTDEFINITIONID, NAME, QUERYVIEWCATALOGID | ![]() |
| Trigger Name | Description |
|---|---|
TR_MKTEXPORTDEFINITIONOUTPUTFIELD_AUDIT_UPDATE |
|
TR_MKTEXPORTDEFINITIONOUTPUTFIELD_AUDIT_DELETE |

ID
NAME
TSLONG
EXPORTDEFINITIONID
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATEADDED
IX_MKTEXPORTDEFINITIONOUTPUTFIELD_DATECHANGED