Unicon documentation migration is in progress. You might find some broken links or experience minor issues in the documentation. We are working on resolving these issues.

X

Scout Database Model (CR)

Table: MaintenanceWindow

Holds the data for command preferences (for standard commands).

ColumnName DataType Key Not Null Default Value Comment
MaintenanceWindowID INTEGER IDENTITY(1,1) PK NN   Unique maintenance window ID
From DATETIME   NN   Start time of maintenance window
To DATETIME   NN   End time of maintenance window
Repeat BIT   NN   Is maintenance window repeating?
RepeatType







INTEGER







 







NN







 







Repeating period
0 REPEAT_DAILY
1 REPEAT_WEEKLY
2 REPEAT_MONTHLY
3 REPEAT_MONTHLY_FIRST_WEEKDAY
4 REPEAT_MONTHLY_SECOND_WEEKDAY
5 REPEAT_MONTHLY_THIRD_WEEKDAY
6 REPEAT_MONTHLY_FOURTH_WEEKDAY
7 REPEAT_MONTHLY_LAST_WEEKDAY
Name NVARCHAR(255)       Name of maintenance window
Administrator NVARCHAR(255)       Name of administrator who has defined the maintenance window
Modified DATETIME   NN   Last modification of maintenance window
IndexName IndexType Columns
PRIMARY PRIMARY MaintenanceWindowID

How to create

CREATE TABLE MaintenanceWindow( MaintenanceWindowID __UNICON_AUTOINCREMENT__ NOT NULL, [From] DATETIME not null, [To] DATETIME not null, [Repeat] BIT not null, RepeatType INTEGER not null, [Name] NVARCHAR(255), Administrator NVARCHAR(255), Modified DATETIME not null, CONSTRAINT PK_MaintenanceWindow PRIMARY KEY (MaintenanceWindowID));
Table: MaintenanceWindow