title: How to set the result of a stored procedure to a variable
body: <p>I am calling a stored procedure like this:</p>
  
  <pre><code>EXEC usp123 @F1 = 1, @F2 = 'A', @F3 = 5
  
  DECLARE @Result int
  
  SET @Result = (EXEC usp123 @F1 = 1, @F2 = 'A', @F3 = 5)
  </code></pre>
  
  <p>How do I assign a variable to the output of this stored procedure as the above syntax does not work ..</p>