title: SCOPE_IDENTITY() for GUIDs?
body: <p>Can anyone tell me if there is an equivalent of <code>SCOPE_IDENTITY()</code> when using GUIDs as a primary key in SQL Server?</p>
  
  <p>I don't want to create the GUID first and save as a variable as we're using sequential GUIDs as our primary keys.</p>
  
  <p>Any idea on what the best way to retrieve the last inserted GUID primary key?</p>