ADHOCQUERYFOLDER
Represents the folders that contain ad-hoc queries.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
|
DISPLAYORDER |
int |
|
Default = 0 |
|
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. |
SECURITYLEVELCODE |
tinyint |
|
Default = 0 |
0=All roles, 1=Selected roles |
SECURITYLEVEL |
nvarchar(14) (Computed) |
yes |
CASE [SECURITYLEVELCODE] WHEN 0 THEN N'All roles' WHEN 1 THEN N'Selected roles' END |
Provides a translation for the 'SECURITYLEVELCODE' field. |
QUERYDEFAULTALLOWALLUSERSTORUN |
bit |
|
Default = 0 |
|
QUERYDEFAULTALLOWALLUSERSTOEDIT |
bit |
|
Default = 0 |
|
APPLYASDEFAULTPERMISSIONSFORALLSUBFOLDERS |
bit |
|
Default = 0 |
|
SMARTQUERYDEFAULTALLOWALLUSERSTORUN |
bit |
|
Default = 0 |
|
SMARTQUERYDEFAULTALLOWALLUSERSTOEDIT |
bit |
|
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
PARENTFOLDERID |
uniqueidentifier |
yes |
ADHOCQUERYFOLDER.ID
|
FK to ADHOCQUERYFOLDER |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
OWNERID |
uniqueidentifier |
yes |
APPUSER.ID
|
FK to APPUSER |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_ADHOCQUERYFOLDER_DATEADDED |
DATEADDED |
|
|
yes |
IX_ADHOCQUERYFOLDER_DATECHANGED |
DATECHANGED |
|
|
|
IX_ADHOCQUERYFOLDER_PARENTFOLDERID |
PARENTFOLDERID |
|
|
|
PK_ADHOCQUERYFOLDER |
ID |
yes |
yes |
|
UIX_ADHOCQUERYFOLDER_PARENTFOLDERID_DISPLAYORDER |
PARENTFOLDERID, DISPLAYORDER |
yes |
|
|
Triggers
Referenced by