Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using wildcards in filter expressions 1

Status
Not open for further replies.

aztech

IS-IT--Management
Apr 17, 2001
25
0
0
US
I have a database of account names where I need to filter out any account name that begins with the 4-letter abbreviation of our hotels. Here's what I'm using (which is not working):

NOT LIKE N'*DCBH*' OR NOT LIKE N'*DCBR*' OR NOT LIKE N'*LANP*'

I tried the % sign instead of *, but that didn't work either.

Any insight you can provide will be greatly appreciated.
 
Thank you! That worked perfectly.
 
To be clear
use the % for SQL wildcard matches
use the * for Wildcard matches in SSRS itself

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top