SMARTQUERYINSTANCE
Each row in the SMARTQUERYINSTANCE 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 |
| DATAFORMITEMFILTERXML |
xml |
|
|
xml field containing the data form item and their corresponding values for a smart query instance. |
| 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 |
| MOBILIZE |
bit |
|
Default = 0 |
Flag indicating whether the smart query is available to mobile devices. |
| DISPLAYORDER |
int |
|
Default = 0 |
Indicates display order used to order query instances within folders. |
Foreign Keys
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_SMARTQUERYINSTANCE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_SMARTQUERYINSTANCE_DATECHANGED |
DATECHANGED |
|
|
|
| IX_SMARTQUERYINSTANCE_FOLDERID |
FOLDERID |
|
|
|
| IX_SMARTQUERYINSTANCE_MOBILIZE |
MOBILIZE |
|
|
|
| IX_SMARTQUERYINSTANCE_SITEID |
SITEID |
|
|
|
| PK_SMARTQUERYINSTANCE |
ID |
yes |
yes |
|
| UIX_SMARTQUERYINSTANCE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by