title: SQLParameter not working properly
body: <p>I am trying to access a stored procedure and I'm getting an error that says:</p>
  
  <blockquote>
    <p>Procedure or function 'getbug' expects parameter '@bugID', which was not supplied.</p>
  </blockquote>
  
  <p>This is my code to call the procedure.</p>
  
  <pre><code>SqlCommand cmd = new SqlCommand("getbug", cn);
  cmd.Parameters.Add(new SqlParameter("bugID", bugID));
  </code></pre>
  
  <p>bugID is set as 1089 (and is type int)</p>
  
  <p>I can't figure out why this won't work.</p>