I need a query that will return only 5 records containing the highest value in a field.
Specifically I need to query the EventLog with WMI and get the 5 most recent events. Normally this would be very easy, but WQL does not support ORDER BY. So basically it returns an un-ordered collection.
To avoid doing a large set of compares to find the most recent events in the collection, there MUST be a way to do a SQL query like this. No?
Specifically I need to query the EventLog with WMI and get the 5 most recent events. Normally this would be very easy, but WQL does not support ORDER BY. So basically it returns an un-ordered collection.
To avoid doing a large set of compares to find the most recent events in the collection, there MUST be a way to do a SQL query like this. No?