1.

Which global variables can be used to determine if a transaction is still open?(a) NESTLEVEL(b) FETCH_STATUS(c) TRANCOUNT(d) CONNECTIONSThis question was addressed to me in an online quiz.The doubt is from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management

Answer»

The correct choice is (C) @@TRANCOUNT

Easy EXPLANATION - PRINT @@TRANCOUNT — The BEGIN TRAN STATEMENT will increment the — TRANSACTION COUNT by 1.



Discussion

No Comment Found

Related InterviewSolutions