I’m running SQL Server 2008 R2. There are a number of records that have this funky � character in a particular column. I’d like to isolate just those records and do a Replace() on them. The problem I’m having is when I run this query:
select * from stories where body like '%�%' and publishdate = 20110131
It will return stories where the � isn’t in the body column. In each of those cases that I’ve checked, there is a normal ? character in the contents of the body column. So it seems that like ‘%�%’ is matching both ? and �. Is there any Cast or Convert magic I can do to return records that actually have the � character?
Does the
Nprefix and a binaryCOLLATEclause do the job?