title: How to set SQLException Number
body: <p>I'm having an issue on settin up <code>SqlException.Number</code></p>
  
  <p>On my Stored Proc i'm raising an error</p>
  
  <pre><code>--@number = 50001
  
  RAISERROR(@number, 16, 1) -
  </code></pre>
  
  <p>I should expect that the <code>Error_Number()</code> should be <code>@number</code> but I always get 18054</p>
  
  <p>Is there something wrong with my <code>RAISERROR</code>?</p>