Posted on : 17-05-2012 | By : Devi Prasad | In : Msg 6401
Msg 6401, Level 16, State 1, Line 1
Cannot roll back t2. No transaction or savepoint of that name was found.
This error orccurs when the Transaction or save point name that is specified in the rollback transaction is not found.
BEGIN TRAN SAVE TRAN T1 ROLLBACK TRAN T2 ROLLBACK TRAN
When the above code is executed error 6401 will occur as the save point with the name T2 cannot be found in Line 3
Update ROLLBACK Tran/TRANSACTION Query with the correct name of the Save Point.
BEGIN TRAN SAVE TRAN T1 ROLLBACK TRAN T1 ROLLBACK TRAN
Reference : Devi Prasad (sqlserverlearner.com)
Tags: Msg 6401 Level 16 State 1 Line 1, Msg 6401 Level 16 State 1 Line 3 Cannot roll back T2. No transaction or savepoint of that name was found.