1.

ROLLBACK WORK always rolls back to the outermost BEGIN TRANSACTION statement for ___________ transactions.(a) Simple(b) Nested(c) Distributed(d) None of the mentionedThe question was asked during an internship interview.The origin of the question is Transaction in portion Performance Tuning and Optimization of SQL Server

Answer»

Correct choice is (B) Nested

The explanation: When nesting TRANSACTIONS, ROLLBACK WORK decrements the @@TRANCOUNT system function to 0.



Discussion

No Comment Found

Related InterviewSolutions