I need to retrieve identity value for inserted record in a stored procedure.
The value is then used to insert a record in a related table to establish relationship.
The stored procedure called from web application meaning, a lot of people can trigger the proc simultaneously.
My guess is scope_identity() should serve the purpose here and select max should not be used.
Any other thoughts?
Thanks