Problem Statement
What risk comes with using a WITH (NOLOCK) or READ UNCOMMITTED hint in a reporting query?
Explanation
At the lowest isolation, reads can observe rows that roll back or scan through changing pages. You can get inconsistent counts, duplicates, or missed rows.
Prefer Snapshot or Read Committed Snapshot where available for non-blocking reads with consistent results.
Code Solution
SolutionRead Only
SELECT * FROM Orders WITH (NOLOCK);
Practice Sets
This question appears in the following practice sets:
