From 822903f95dc68711bbfb1180655bbee997e36f75 Mon Sep 17 00:00:00 2001 From: runekock Date: Sat, 21 Feb 2026 13:34:24 +0100 Subject: [PATCH] READPAST cannot be used in snapshot-isolation even with other hints 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. --- docs/t-sql/queries/hints-transact-sql-table.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/t-sql/queries/hints-transact-sql-table.md b/docs/t-sql/queries/hints-transact-sql-table.md index 643ef196160..29466b933aa 100644 --- a/docs/t-sql/queries/hints-transact-sql-table.md +++ b/docs/t-sql/queries/hints-transact-sql-table.md @@ -294,7 +294,7 @@ Specifies that the [!INCLUDE [ssDE](../../includes/ssde-md.md)] not read rows th `READPAST` can be specified for any table referenced in an `UPDATE` or `DELETE` statement, and any table referenced in a `FROM` clause. When specified in an `UPDATE` statement, `READPAST` is applied only when reading data to identify which records to update, regardless of where in the statement it's specified. `READPAST` can't be specified for tables in the `INTO` clause of an `INSERT` statement. Update or delete operations that use `READPAST` might block when reading foreign keys or indexed views, or when modifying secondary indexes. -`READPAST` can only be specified in transactions operating at the `READ COMMITTED` or `REPEATABLE READ` isolation levels. When specified in transactions operating at the `SNAPSHOT` isolation level, `READPAST` must be combined with other table hints that require locks, such as `UPDLOCK` and `HOLDLOCK`. +`READPAST` can only be specified in transactions operating at the `READ COMMITTED` or `REPEATABLE READ` isolation levels. The `READPAST` table hint can't be specified when the `READ_COMMITTED_SNAPSHOT` database option is set to `ON` and either of the following conditions is true: