title: How do I convert a string into safe SQL String?
body: <p>I'm generating some sql insert statements from a bunch of text files.</p>
  
  <p>These text files are generally user input data. I would like to sanitize this data so that it's not going to break the insert statement.</p>
  
  <p>For example, some of the input data, people have used the word Don't. The "'" in don't will lead the sql statement to think the string has ended and therefore cause an error.</p>
  
  <p>Is there any .NET method I can call to kind of convert all of these characters to either escape codes or safe characters?</p>