Searching for strings with double quotes in SQL Server

If there is only one double quote then you should try

select * from tablename where columnname like '%"%'

If you know that there are two consecutive double quotes then, I would suggest you to use a like statement

select * from tablename where columnname like '%""%'

Otherwise if you don't know then you should try(Which is more preferable)

select * from tablename where columnname like '%"%"%'

Try this.

SELECT * FROM tb WHERE col Like '%"%'

Or

SELECT * FROM tb WHERE CHARINDEX('"',col) > 0

Tags:

Sql

Sql Server