I want to return the identity for a row that was updated using an update statement.
The update statement is as follows:
UPDATE Answers
SET InUse = @SessionID
FROM (Select Top 1 AnswerID from Answers_Eligible) . . .
I need the asnwerid for the updated record. @@Identity is only useful for inserts.
Any suggestions appreciated.
Thanks in advance