Possible Duplicate:
Extended ascii characters search in SQL Server
I have table in SQL Server where data may be stored with extended charcaters (♥,♣,♦...
) in one of the column.
From my .net database layer, the string is passed in encoded format to the database.
There is column Name
in the DB and has value santosh♥
.
Now from my .net code, I will pass 'santosh♥'
as '%E2%99%A5' (encoded value for santosh♥
).
So now DB has to search for santosh♥
in the column Name
by using '%E2%99%A5'
string.
For ex:
select * from table where Name='%E2%99%A5';
but the above query doesn't work.
Any help?