title: How to set a MSSQLServer Stored Procedure Input Parameter to an Output parameter for passback.
body: <p>So I have a stored proc and I am trying to set an output parameter to an input parameter but I can't get it to work. </p>
  
  <p>Essentially here is my proc...</p>
  
  <pre><code>...
  @InID DECIMAL(9),
  @ID DECIMAL(9) OUTPUT,
  ...
  if @InID is not null
  begin
     @ID = @InID
  end
  ...
  </code></pre>
  
  <p>But this shows as having a syntax error. How do I fix this?</p>