Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
ROLLBACK WORK (or simply ROLLBACK) is fundamental in transactional SQL. Misunderstanding what it does can put data integrity at risk. The statement claims that ROLLBACK “asks SQL to empty the log file,” which is not what rollback does.
Given Data / Assumptions:
Concept / Approach:
A rollback walks back uncommitted changes so the database returns to the last consistent state (the start of the transaction or a SAVEPOINT). It does not perform log maintenance. Log space management (checkpointing, truncation, archiving) is handled by the engine based on recovery settings, not by the ROLLBACK command itself.
Step-by-Step Solution:
Verification / Alternative check:
Inspect log file growth and retention policies; they are governed by checkpoints, backups, and engine settings, independent of a single rollback.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing engine recovery mechanics with user transaction control; assuming rollback reclaims disk immediately.
Final Answer:
Incorrect
Discussion & Comments