Answer the question
In order to leave comments, you need to log in
How to make a unique transaction (which will not be repeated)?
SET XACT_ABORT ON;
BEGIN TRAN UN_name-141242141515151235566451;
...
IF @@ERROR = 0 COMMIT TRAN UN_name-141242141515151235566451
ELSE
ROLLBACK TRAN UN_name-141242141515151235566451;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question