Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

how do i search for special characters in sql server 2008 r2?

$
0
0

hi ,

i got the requirements like i have to search for special characters like the names who are having single quotes in their names c'te

ex: select * from names where name like 'c'test%' for this i got the solution like

select * from names where name like '%''%' the above answer is useful to search who are having single quotes in their names but my requirement is how do i search the name directly like select * from names where name like 'c'test%' because from application side they will search for the lable last name d'tech

Please note that we should not pass any extra quotes while searching the names

help on this with example will be appreciated

Thanks in Advane


franklinsentil


Viewing all articles
Browse latest Browse all 23857

Trending Articles