Share via


ValidateQuery Method in Class SMS_Report

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The ValidateQuery Windows Management Instrumentation (WMI) class method, in Configuration Manager, verifies that a report query is a valid SQL statement and performs the same level of validation that occurs when the report is saved.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

Boolean ValidateQuery(
     String SQLQuery,
   String Parameters[],
    String SQLErrorMessage
);

Parameters

  • SQLQuery
    Data type: String

    Qualifiers: [in]

    Query statement to validate.

  • Parameters
    Data type: String Array

    Qualifiers: [in]

    Query parameters.

  • SQLErrorMessage
    Data type: String

    Qualifiers: [out]

    SQL error message.

Return Values

A Boolean data type that is true if the query is valid.

Remarks

This method validates the SQL query that produces the result set of the SMS_Report Server WMI Class object. Your application calls this method before running the query.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

SMS_Report Server WMI Class