“[” is not classed a unicode character http://en.wikipedia.org/wiki/List_of_Unicode_characters (my guess) as to why this wouldn’t work:
declare @v nvarchar(255)
set @v = '[x]825'
select 1
where @v like '[x]825'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
[]defines a range of characters for a pattern match. It has special meaning in a LIKE statement. Here’s the documentation for it.If you’re looking for those characters explicitly, you’ll need to escape them, like this: