SMS_SCI_SQLCmd
The SMS_SCI_SQLCmd WMI class defines a Structured Query Language (SQL) command to be run periodically directly in the SQL Server database.
The following syntax is simplified from MOF code and includes all inherited properties.
Class SMS_SCI_SQLCmd : SMS_SiteControlItem
{
datetime BeginTime;
uint32 DaysOfWeek;
uint32 FileType;
string ItemName;
string ItemType;
datetime LatestBeginTime;
string LogFile;
string Name;
uint32 NumRefreshDays;
boolean On;
string SiteCode;
string SQLCmd;
};
Properties
BeginTime
Data type: datetime
Access type: Read/writeBeginning time of the (SQL) command. Note that only the hours and minutes of this datetime property are used.
DaysOfWeek
Data type: uint32
Access type: Read/write
Qualifiers: BitsDays of the week on which the command executes. The default is everyday. Bit field flags are:
SUNDAY (0),
MONDAY (1),
TUESDAY (2),
WEDNESDAY (3),
THURSDAY (4),
FRIDAY (5),
SATURDAY (6)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-only
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) command. Note that only the hours and minutes of this property are used.
LogFile
Data type: string
Access type: Read/writeLogfile to which to write the output.
Name
Data type: string
Access type: Read/writeUser-defined name given to the SQL command.
NumRefreshDays
Data type: uint32
Access type: Read/writeNumber of days between task execution.
On
Data type: boolean
Access type: Read/writeIndicates whether the SQL command is activated.
SiteCode
Data type: string
Access type: Read-only
Qualifiers: KeySite code of the site server.
SQLCmd
Data type: string
Access type: Read/writeSQL command to execute.