maxParseErrors Property
Sets or gets the maximum number of parse errors that can occur during the execution of a query before aborting the query execution.
Read/write property.
Script Syntax
objLogQuery.maxParseErrors = value;
value = objLogQuery.maxParseErrors;
Argument/Return Value
An integer value specifying the maximum number of parse errors that can occur during the execution of a query before aborting the query execution.A value of -1 specifies that all parse errors should be ignored.
Default Value
-1
Remarks
- This property is analogous to the "-e" global switch available with the Log Parser command-line executable.
Examples
JScript example:
var oLogQuery = new ActiveXObject("MSUtil.LogQuery"); oLogQuery.maxParseErrors = 10;VBScript example:
Dim oLogQuery Set oLogQuery = CreateObject("MSUtil.LogQuery") oLogQuery.maxParseErrors = 10
See also:
LogQuery ObjectLog Parser COM API Overview
C# Example