title: sql exec procedure using c#
body: <blockquote>
  <p>this C# instruction is not working for me  I think because of the {message} variable output</p>
  </blockquote>
  <pre><code>string message = null; command = new SqlCommand($&quot;exec ReAppoint '{sid1}', '{sid2}', '{R2.bid}', '{R2.resDate}' , {message} output&quot;, connection);
  </code></pre>
  <blockquote>
  <p>I just wanna know how to save the error message &quot;message&quot; inside C# variable</p>
  </blockquote>