title: Inserting Exception Message in SQL Server
body: <p>My .Net C# Apllication Throws this run time Exception</p>
  <pre><code>'Value cannot be null. (Parameter 'value')'
  </code></pre>
  <p>I have a Log in SQL Server DB, where I store the Exception Messages.
  but when I try to insert the above error message,</p>
  <pre><code>INSERT INTO tblApplicationError ([ErrorDesc]) VALUES('Value cannot be null. (Parameter 'value')') 
  </code></pre>
  <p>it gives me the below error</p>
  <pre><code>Incorrect syntax near 'value'
  </code></pre>
  <p>because of the single quote around the <code>'value'</code>. As the exception message was thrown at run time,
  how do I Insert the message in DB</p>