I am using Sql Server 2008.
I have a table that generates an ID. I want to get the generated identifier and save it in the bigint variable. How can i do this?
This is where Proc is stored, which gives the identifier as a result set. But I can not store it in the bigint variable.
ALTER PROC SCN.TRANSACTION_UNIQUE_ID_SELECT
AS
UPDATE COR.TRANSACTION_UNIQUE_ID
SET ID = ID + 1
OUTPUT INSERTED.ID AS ID
source
share