user1717270
user1717270

Reputation: 785

Escaping special characters in SQL Server 2008

I need your help on this: I am using SQL Server 2008 and have a stored procedure which is used to retrieve values from a table column.

Column of table contains description which could have anything including all special characters.

Is there any way I can escape all special characters ?

Thanks

Upvotes: 0

Views: 1540

Answers (1)

Er KK Chopra
Er KK Chopra

Reputation: 1850

try this

WHERE Description LIKE '%\ any text%'

here \ means ESCAPE

Upvotes: 2

Related Questions