Is there a SQL function (instring maybe) to search and replace single quotes (or apostrophes) with double quotes in a string? So that we can insert strings with names like O'Brien, etc.
Not built-in
But you could write your own.
BTW If you pass your strings as parameters from your FrontEnd the ODBC driver or Provider will handle then easily.
--Remove Single quotes from the comment
Update [RepliconTemp].[dbo].[tdctim_TDC]
set tmcomment = replace(tmcomment,char(39),'')
where CHARINDEX(char(39), TMCOMMENT)>0
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.