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

T-SQL LIKE Expression as SSRS Perameter value?

$
0
0

Trying to figure out how to replace a WHERE x LIKE "y" clause in a recordsource with a parameter.

Instead of switching various WHERE statements around, such as WHERE ac.number LIKE 'R% [EL][IR]-%'
or
WHERE ac.number LIKE 'R% EI-%' ,
I would like to replace them with WHEREac.NumberLIKE@revenueSource and then set the possible values of @revenueSource to strings like 'R% EI-%' or 'R% [EL][IR]-%'.

The problem is how to express  'parameter choices like R% EI-%' or 'R% [EL][IR]-%' in a format that SSRS will accept as a valid parameter value. Any advice?


 

HomeCookN


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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