ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.QueryDesigner Assembly / GrapeCity.ActiveReports.QueryDesigner.Implementation Namespace / IQueryDesignerHost Interface / ExecuteQuery Method
The SQL query to execute.
An array of GrapeCity.ActiveReports.QueryDesigner.Implementation.Data.IDataParameter objects representing the query parameters.
The maximum number of rows to include in the result for preview purposes.

In This Topic
    ExecuteQuery Method
    In This Topic
    Executes the specified query with the given parameters.
    Syntax
    'Declaration
     
    Function ExecuteQuery( _
       ByVal query As String, _
       ByVal parameters() As IDataParameter, _
       ByVal previewLimit As Integer _
    ) As DataTable
    DataTable ExecuteQuery( 
       string query,
       IDataParameter[] parameters,
       int previewLimit
    )

    Parameters

    query
    The SQL query to execute.
    parameters
    An array of GrapeCity.ActiveReports.QueryDesigner.Implementation.Data.IDataParameter objects representing the query parameters.
    previewLimit
    The maximum number of rows to include in the result for preview purposes.

    Return Value

    A GrapeCity.ActiveReports.QueryDesigner.Implementation.Data.DataTable containing the result of the query execution.
    See Also