| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
PATHALIAS |
nvarchar(128) | Alias name for the linked view; allows two views to be linked on different columns | ||
ROOTCOLUMN |
nvarchar(128) | Default = '' | Column in the query view that is used to link to the related query view | |
RELATEDCOLUMN |
nvarchar(128) | Default = '' | Column in the related query view that is used to link to the primary object | |
SEQUENCE |
int | Default = 0 | Used to define a sequential order in query | |
JOINTYPE |
tinyint | Default = 0 | 0 - left outer join, 1 - inner join, 2 - outer apply, 3 - cross apply | |
JOINPARAMETERS |
nvarchar(255) | Default = (0) | A list of parameters that can be supplied to the table function that is being joined to | |
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 |
CARDINALITYTYPE |
tinyint | Default = 0 | ||
DISPLAYALIAS |
nvarchar(100) | ![]() |
||
DISPLAYALIASRESOURCEKEY |
nvarchar(100) | ![]() |
||
RESOURCEFILEASSEMBLYNAME |
nvarchar(max) | ![]() |
||
RESOURCEFILECLASSNAME |
nvarchar(max) | ![]() |
||
OBSOLETE |
bit | Default = 0 |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
ROOTQUERYVIEWID |
uniqueidentifier | QUERYVIEWCATALOG.ID | Query view ID | |
RELATEDQUERYVIEWID |
uniqueidentifier | QUERYVIEWCATALOG.ID | Related query view ID | |
ADDEDBYQUERYVIEWID |
uniqueidentifier | QUERYVIEWCATALOG.ID | Query view ID from which the relationship record was created | |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_QUERYVIEWRELATIONSHIP_DATEADDED |
DATEADDED | ![]() |
||
PK_QUERYVIEWRELATIONSHIP |
ID | ![]() |
![]() |
|
UC_QUERYVIEWRELATIONSHIP_ROOTQUERYVIEWID_PATHALIAS |
ROOTQUERYVIEWID, PATHALIAS | ![]() |
| Trigger Name | Description |
|---|---|
TR_QUERYVIEWRELATIONSHIP_AUDIT_UPDATE |
|
TR_QUERYVIEWRELATIONSHIP_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
MKTEXPORTDEFINITIONOUTPUTFIELD |
CUSTOMQUERYVIEWRELATIONSHIPID |

ID
PATHALIAS
TSLONG
ROOTQUERYVIEWID
IX_QUERYVIEWRELATIONSHIP_DATEADDED
UC_QUERYVIEWRELATIONSHIP_ROOTQUERYVIEWID_PATHALIAS