title: Why do I get error 201 Procedure or Function expects parameter which was not supplied?
body: <p>When I run the code below I get an error message:</p>
  
  <pre><code>DECLARE @return_value int
  
  EXEC    @return_value = [dbo].[stp_DespatchedJob]
          @JobStatusId = NULL
  
  SELECT  'Return Value' = @return_value
  GO
  </code></pre>
  
  <blockquote>
    <p>Msg 201, Procedure stp_DespatchedJob, Line 0<br>
    Procedure or Function 'stp_DespatchedJob' expects parameter '@jobId', which was not supplied</p>
  </blockquote>
  
  <p>What does this mean? Why am I getting this error?</p>