Skip to content

READPAST cannot be used in snapshot-isolation even with other hints#10287

Open
runekock wants to merge 1 commit intoMicrosoftDocs:livefrom
runekock:patch-2
Open

READPAST cannot be used in snapshot-isolation even with other hints#10287
runekock wants to merge 1 commit intoMicrosoftDocs:livefrom
runekock:patch-2

Conversation

@runekock
Copy link
Contributor

I get an error if I try WITH(UPDLOCK, READPAST) in snapshot isolation. Remove sentence that indicates that extra hints are sufficient to make it work.

I get an error if I try WITH(UPDLOCK, READPAST) in snapshot isolation. Remove sentence that indicates that extra hints are sufficient to make it work.
@prmerger-automator
Copy link
Contributor

@runekock : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 822903f:

✅ Validation status: passed

File Status Preview URL Details
docs/t-sql/queries/hints-transact-sql-table.md ✅Succeeded

For more details, please refer to the build report.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Transact-SQL table hints documentation to correct guidance about using READPAST under SNAPSHOT isolation, aligning the doc with actual SQL Server behavior.

Changes:

  • Removes the statement claiming READPAST can be used under SNAPSHOT isolation when combined with lock-taking hints (for example, UPDLOCK, HOLDLOCK).
  • Leaves the documented restriction that READPAST is only valid under READ COMMITTED or REPEATABLE READ.

@ttorble
Copy link
Contributor

ttorble commented Feb 23, 2026

@VanMSFT

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants