Cannot roll back xxxxxxxx. No transaction or savepoint of that name was found.

Posted on : 17-05-2012 | By : Devi Prasad | In : Msg 6401

0



Error Message:

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.

Example:

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

Fix/Resolution:
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)

Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.



Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.




Your Ad Here


Tags: ,