Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make wildcards work in a like operator in SQL Server reporting services?

I have added a filter expression using the like operator. What do I put in the value field? my parameter is named @test and I'd like the filter to function as a like %@test% would in SQL. I want it to act like %@test% so I can pass '' to get all values for the query.

like image 523
David Silva Smith Avatar asked Feb 04 '11 13:02

David Silva Smith


1 Answers

I got this to work by adding a filter expression with a like operator and setting the value to this:

="*" + Parameters!Roles.Value + "*"

To get all values I pass ''.

like image 177
David Silva Smith Avatar answered Sep 21 '22 14:09

David Silva Smith