eud-eud-for-devexpress-reports-reporting-for-web-report-designer-bind-to-data-specify-query-parameters.md
This document provides general information on query parameters and describes common ways of utilizing parametrized SQL queries to filter data at the data source level.
A query parameter holds an external value that is inserted into an SQL statement before query execution. This value can be either static or dynamically generated by an associated expression.
The query parameter value is inserted into the resulting SQL query string in the “@QueryParameterName” placeholder’s position.
Query parameters are used in the following scenarios:
When filtering report data at the data source level using the Query Builder.
When binding a report to a stored procedure provided by an SQL data source.
The following properties are available for each query parameter:
Below, you can see how a value is specified for a query parameter within the Data Source Wizard’s page. You can also specify query parameter values in the Report Wizard or the Query Parameters dialog in the same way.
Specifying a static value
Providing a dynamic value
You can map multi-value parameters to query parameters. For instance, the following query selects the orders whose IDs can be found within the values the @OrderID query parameter provides.
You cannot pass a multi-value parameter value to a stored procedure directly. Use one of the following expression functions:
Use the Join() expression function to convert the array of parameter values to a string if you use MS SQL Server, MySQL or Oracle database systems.
Use the CreateTable() expression function to prepare a table using values of several multi-value parameters.