SMS_SCI_SQLTask
The SMS_SCI_SQLTask WMI class defines a Structured Query Language (SQL) task to be run periodically.
The following syntax is simplified from MOF code and includes all inherited properties.
Class SMS_SCI_SQLTask : SMS_SiteControlItem
{
datetime BeginTime;
uint32 DaysOfWeek;
uint32 DeleteOlderThan;
string DeviceName;
uint32 FileType;
string ItemName;
string ItemType;
datetime LatestBeginTime;
uint32 NumRefreshDays;
boolean On;
string SiteCode;
string TaskName;
uint32 TaskType;
};
Properties
BeginTime
Data type: datetime
Access type: Read/writeBeginning time of the SQL task. Note that only the hours and minutes of this property are used.
DaysOfWeek
Data type: uint32
Access type: Read/write
Qualifiers: BitsDays of the week on which the SQL task executes. Bit field flags are:
SUNDAY (0)
MONDAY (1)
TUESDAY (2)
WEDNESDAY (3)
THURSDAY (4)
FRIDAY (5)
SATURDAY (6)DeleteOlderThan
Data type: uint32
Access type: Read/writeNumber of days after which records are deleted if the TaskType property is DELETE.
DeviceName
Data type: string
Access type: Read/writeDevice name if the TaskType property is BACKUP.
FileType
Data type: uint32
Access type: Read-only
Qualifiers: KeyType of site control file. This property is no longer used for queries. Values are:
EMPTY (0)
ACTUAL (1)
PROPOSED( 2)
TRANSACTIONS (4)
LOCAL_TRANSACTIONS (6)ItemName
Data type: string
Access type: Read/write
Qualifiers: KeyUnique identifier of a site-control item.
ItemType
Data type: string
Access type: Read-only
Qualifiers: KeyUnique identifier of a site-control item.
LatestBeginTime
Data type: datetime
Access type: Read/writeLatest beginning time for the (SQL) task. Note that only the hours and minutes of this property are used.
NumRefreshDays
Data type: uint32
Access type: Read/writeNumber of days between task execution.
On
Data type: boolean
Access type: Read/writeIndicates that the task is active.
SiteCode
Data type: string
Access type: Read-only
Qualifiers: KeySite code of the site server.
TaskName
Data type: string
Access type: Read/writeTask name. SMS-defined task names are:
Dump SMS Database Dump SMS Transaction Log Dump Licensing Database Dump Licensing Transaction Log Update Statistics Rebuild Indexes Monitor Keys and Recreate Views Delete Aged Inventory History Delete Aged Status Objects Delete Aged Discovery Data Delete Aged Collected Files
TaskType
Data type: uint32
Access type: Read/writeTask type. Values are:
BACKUP (1)
PERIOD (2)
DELETE (3)