Microsoft
70-451 · Question #126
You have a database that contains two tables. Both the XACT_ABORT database option and the IMPLICIT_TRANSACTIONS database option are set to OFF. You need to update both tables. If an update fails on…
The correct answer is A. Use a transaction. See the full explanation below for the reasoning.
Question
You have a database that contains two tables. Both the XACT_ABORT database option and the IMPLICIT_TRANSACTIONS database option are set to OFF. You need to update both tables. If an update fails on either table, neither table should be updated. What should you do?
Options
- AUse a transaction.
- BChange the isolation level.
- CUse the TABLOCK query hint.
- DUse the UPDLOCK query hint.
How the community answered
(26 responses)- A77% (20)
- B8% (2)
- C12% (3)
- D4% (1)
Community Discussion
No community discussion yet for this question.