{"id":218,"date":"2012-05-17T10:20:51","date_gmt":"2012-05-17T10:20:51","guid":{"rendered":"https:\/\/sqlserverlearner.azurewebsites.net\/2012\/05\/17\/cannot-roll-back-xxxxxxxx-no-transaction-or-savepoint-of-that-name-was-found\/"},"modified":"2012-05-17T10:20:51","modified_gmt":"2012-05-17T10:20:51","slug":"cannot-roll-back-xxxxxxxx-no-transaction-or-savepoint-of-that-name-was-found","status":"publish","type":"post","link":"https:\/\/sqlserverlearner.com\/2012\/05\/17\/cannot-roll-back-xxxxxxxx-no-transaction-or-savepoint-of-that-name-was-found\/","title":{"rendered":"Cannot roll back xxxxxxxx. No transaction or savepoint of that name was found."},"content":{"rendered":"

Error Message:<\/strong>
\n
\nMsg 6401, Level 16, State 1, Line 1
\nCannot roll back t2. No transaction or savepoint of that name was found.
\n<\/font><\/p>\n

This error orccurs when the Transaction or save point name that is specified in the rollback transaction is not found.<\/p>\n

Example:<\/strong>
\n[sql]
\nBEGIN TRAN
\nSAVE TRAN T1
\nROLLBACK TRAN T2
\nROLLBACK TRAN
\n[\/sql]<\/p>\n

When the above code is executed error 6401 will occur as the save point with the name T2 cannot be found in Line 3<\/p>\n

Fix\/Resolution:<\/strong>
\nUpdate ROLLBACK Tran\/TRANSACTION Query with the correct name of the Save Point.<\/p>\n

[sql]
\nBEGIN TRAN
\nSAVE TRAN T1
\nROLLBACK TRAN T1
\nROLLBACK TRAN
\n[\/sql]<\/p>\n","protected":false},"excerpt":{"rendered":"

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: [sql] BEGIN TRAN SAVE TRAN T1 ROLLBACK TRAN T2 ROLLBACK TRAN…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2011],"tags":[2012,2013],"_links":{"self":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/218"}],"collection":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":0,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}