ADHOCQUERY
Each row in the ADHOCQUERY table corresponds to a user-defined query definition, including all of the information required to build a valid sql statement.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(255) |
|
Default = '' |
Name of the query |
DESCRIPTION |
nvarchar(1024) |
|
Default = '' |
Description for the query |
QUERYDEFINITIONXML |
xml |
|
|
xml field containing the entire query definition structure, including all output fields, criteria, and sorting. |
OTHERSCANMODIFY |
bit |
|
Default = 0 |
Indicates whether or not other users can modify this query. |
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. |
SECURITYLEVEL |
tinyint |
|
Default = 0 |
0 - All roles, 1 - Selected Roles |
DISPLAYORDER |
int |
|
Default = 0 |
|
SECURITYLEVELEDIT |
tinyint |
|
Default = 0 |
0 - All roles, 1 - Selected Roles |
MOBILIZE |
bit |
|
Default = 0 |
Flag indicating whether the ad-hoc query is available to mobile devices. |
ISBROWSABLE |
bit |
|
Default = 0 |
Flag indicating whether the ad-hoc query is browsable. |
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ADHOCQUERY_DATEADDED |
DATEADDED |
|
|
yes |
IX_ADHOCQUERY_DATECHANGED |
DATECHANGED |
|
|
|
IX_ADHOCQUERY_FOLDERID |
FOLDERID |
|
|
|
IX_ADHOCQUERY_MOBILIZE |
MOBILIZE |
|
|
|
IX_ADHOCQUERY_QUERYCATEGORYCODEID |
QUERYCATEGORYCODEID |
|
|
|
IX_ADHOCQUERY_QUERYVIEWCATALOGID |
QUERYVIEWCATALOGID |
|
|
|
IX_ADHOCQUERY_SITEID |
SITEID |
|
|
|
PK_ADHOCQUERY |
ID |
yes |
yes |
|
UC_ADHOCQUERY_NAME |
NAME |
yes |
|
|
Triggers
Referenced by