I would like to find all the rows in a table and match on an exact case sensitive string. Unfortunately, my table has the case insensitive collation.
What is the most efficient way to perform this.
Eg.
I would like the following to return no rows:
select * from sysobject where name = 'Sysbinobjs'
For the answer assume @match is in a variable:
declare @match varchar(4000)
set @match = 'sysbinobjs'
EDIT
Clarification, make sure trailing spaces are treated properly, I want an exact match that takes account of trailing spaces so 'Hello' will only be matched with 'Hello' and not with 'Hello '