Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

ReportingService2010.PrepareQuery Method (DataSource, DataSetDefinition, Boolean, String[])


Returns a dataset that contains the fields retrieved by the delivery query for a data-driven subscription.

Namespace:   ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
    RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
    ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member PrepareQuery : 
        DataSource:DataSource *
        DataSet:DataSetDefinition *
        Changed:bool byref *
        ParameterNames:string[] byref -> DataSetDefinition


Type: ReportService2010.DataSource

The data source for the delivery query. This can be a shared data source or a model.

Type: ReportService2010.DataSetDefinition

The dataset that contains the delivery query and fields for a data-driven subscription.

Type: System.Boolean

[out] A Boolean value that indicates whether the dataset that was passed to the method differs from the one returned by the method. Use this property to determine whether the input dataset differs from the output dataset.

Type: System.String[]

[out] The names of the query parameters used in the underlying semantic query. This out parameter is only used when the DataSource references a model.

Return Value

Type: ReportService2010.DataSetDefinition

A DataSetDefinition object that contains the fields and the delivery query that are retrieved from the given data source.

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

Depends on the item type:

SharePoint Mode Required Permissions

ViewListItems on DataSource

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft