How do I convert a string into safe SQL String?

There is only a single character you have to escape: ansi 0x27, aka the single quote:

safeString = unsafeString.Replace("'","''");

Leave a Comment