Skip to content

Commit dbd15fa

Browse files
Merge pull request #26287 from JamesFerebee/patch-2
Add errors 22891 and 22892
2 parents ba0d949 + 1079679 commit dbd15fa

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/relational-databases/logs/control-transaction-durability.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,15 @@ COMMIT [ { TRAN | TRANSACTION } ] [ transaction_name | @tran_name_variable ] ] [
173173

174174
## <a id="bkmk_OtherSQLFeatures"></a> Delayed durability and other [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] features
175175

176-
**Change tracking and change data capture**
177-
All transactions with change tracking are fully durable. A transaction has the change tracking property if it does any write operations to tables that are enabled for change tracking. The use of delayed durability is not supported for databases, which use change data capture (CDC).
176+
**Transactional Replication, Change Tracking, and Change Data Capture**
177+
- For databases enabled for Transactional Replication or Change Data Capture (CDC), the use of delayed durability is not supported.
178+
179+
- Change Tracking with Delayed Durability is supported. All transactions with Change Tracking are fully durable. A transaction has the change tracking property if it does any write operations to tables that have enabled change tracking.
180+
181+
Starting with SQL Server 2022 CU2 and SQL Server 2019 CU20, you may see:
182+
- `Error 22891: Could not enable '_FeatureName_' for database '_DatabaseName_'. '_FeatureName_' cannot be enabled on a DB with delayed durability set` if you try to enable Transactional Replication or Change Data Capture on a database that has enabled delayed durability.
183+
184+
- `Error 22892: Could not enable delayed durability on DB. Delayed durability cannot be enabled on a DB while '_FeatureName_' is enabled` if you try to enable delayed durability on a database that is configured with Transactional Replication or Change Data Capture.
178185

179186
**Crash recovery**
180187
Consistency is guaranteed, but some changes from delayed durable transactions that have committed may be lost.
@@ -188,9 +195,6 @@ COMMIT [ { TRAN | TRANSACTION } ] [ transaction_name | @tran_name_variable ] ] [
188195
**Failover clustering**
189196
Some delayed durable transaction writes might be lost.
190197

191-
**Transaction Replication**
192-
Delayed durable transactions are not supported with Transactional Replication.
193-
194198
**Azure Synapse Link for SQL**
195199
Delayed durable transactions are not supported with Azure Synapse Link for SQL.
196200

0 commit comments

Comments
 (0)