Link to home
Start Free TrialLog in
Avatar of mpdillon
mpdillon

asked on

SQL WHERE question

I need to find the records which contain some specicial characters such as a trademark. In Visual Basic (maybe unicode?) the trademark is represented by AscW(174).
How would I structure my WHERE clause to return the records that contain the trademark?

Select Field1 From TableA where Field1 Like ???????????  or Contains?

Thanks,
pat
ASKER CERTIFIED SOLUTION
Avatar of Shaun Kline
Shaun Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can use the character in sidle the like operater and do something like this
SELECT Field1 FROM TableA WHERE Field1 LIKE '%' + char(174) + '%'

Open in new window

Avatar of mpdillon
mpdillon

ASKER

Thank you both,
I was using Chr and not Char. It now works.