I have written the following query to list the rows which have invalid characters in that column
SELECT * from titles where convert(varchar(255), [title]) like
'%[^-\^_<>`~{} :[",#$%&!?;+0-9a-zA-Z@/*().]%' AND convert(varchar(255), [title]) NOT LIKE '%]%'
List of valid characters are [^-\^_<>`~{} :[",#$%&!?;+0-9a-zA-Z@/*().]. But this query returns the rows, which have invalid characters. How does this happen?
Thanks in Advance,
Manohar
SELECT * from titles where convert(varchar(255), [title]) like
'%[^-\^_<>`~{} :[",#$%&!?;+0-9a-zA-Z@/*().]%' AND convert(varchar(255), [title]) NOT LIKE '%]%'
List of valid characters are [^-\^_<>`~{} :[",#$%&!?;+0-9a-zA-Z@/*().]. But this query returns the rows, which have invalid characters. How does this happen?
Thanks in Advance,
Manohar