Quantcast
Viewing all articles
Browse latest Browse all 7205

How to pass a multi-value parameter to a query

This example illustrates a workaround to use multi-value parameters in a query string.

At present, query parameters cannot be directly mapped to multi-value report parameters, and this task is solved by adding a WHERE clause to the SQL string in the following way.

[SQL]
SELECT [Categories].[CategoryID], [Categories].[CategoryName] FROM [Categories] [Categories] WHERE [Categories].[CategoryID] IN (1,2,3)

This example illustrates how to dynamically update the query string using values assigned to a report parameter.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>