Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Wildcards in report parameters.

$
0
0

How do I accomplish wildcards in report parameters?  With my requirement, I cannot simply concatenate '%' + @in_value + '%' because each @in_value might have a different set of wildcards.

Example:

SQL STATEMENT:

SELECT  item
FROM  items_table
WHERE  item LIKE @in_value

PARAMETER:

@in_value

Specify Values

Display Value      Actual Value
Bikes              B1-____
Cars               CAR%
Toasters           T_-kitchen

As you can see, depending on which item is chosen, the wildcard is different.  Some are % and some are placements of _.

Of course, due to parameterization, these will not be parsed for their wildcards.  I believe they are only handled as literals.

How can I allow the report to pass in wildcards?


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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