APPUSERADHOCQUERYFAVORITE (4.0SP12)

Stores user specific adhoc query favorites

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

APPUSERID

uniqueidentifier

false

FK to APPUSER

ADHOCQUERYID

uniqueidentifier

false

FK to ADHOCQUERY

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_APPUSERADHOCQUERYFAVORITE_DATEADDED

DATEADDED

False

False

True

IX_APPUSERADHOCQUERYFAVORITE_DATECHANGED

DATECHANGED

False

False

False

PK_APPUSERADHOCQUERYFAVORITE

ID

True

True

False

UIX_APPUSERADHOCQUERYFAVORITE_APPUSERID_ADHOCQUERYID

APPUSERID

ADHOCQUERYID

True

False

False

Triggers
Trigger Name Description

TR_APPUSERADHOCQUERYFAVORITE_AUDIT_UPDATE

TR_APPUSERADHOCQUERYFAVORITE_AUDIT_DELETE