title: Taking a value from a Stored Procedure
body: <p>My database developer created a Stored Procedure whom return the last ID, but not like output parameter.</p>
  
  <pre><code>.
  .
  .
          SET @NewContractSvcLID = @@IDENTITY
          RETURN @NewContractSvcLID
  END
  </code></pre>
  
  <p>How I can get that value in PHP using MSSQL?
  Thanks.</p>
  
  <p>Note.
  I was trying like a result set (mssql_fetch_row) but with a simple echo I saw a different result, just a "1".</p>