Chptr 16 WMI Event Watcher Task Example
What is wrong with the WQL code from the book????????
The error is [WMI Event Watcher Task] Error: An error occurred with the following error message: "Input string was not in a correct format.". The code is:
select * from __InstanceCreationEvent within 10
where TargetInstance ISA 'CIM_DataFile'
AND TargetInstance.Name = 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\Backup\\admin.bak'
George L. Lapin
|