Skip to content

Commit 364985b

Browse files
authored
Add errors 22891 and 22892
------- cc: @MashaMSFT
1 parent a0a6cb3 commit 364985b

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+
- The use of delayed durability is not supported for databases which use change data capture (CDC).
178+
- Delayed durable transactions are not supported with Transactional Replication.
179+
- 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.
180+
181+
> [!NOTE]
182+
> Starting in SQL Server 2022 CU2 and SQL Server 2019 CU20, we will raise an error if you attempt to either:
183+
> - Enable Transactional Replication, Change Tracking, or Change Data Capture for a database that is enabled for delayed durability. You will receive error 22891: Could not enable '_FeatureName_' for database '_DatabaseName_'. '_FeatureName_' cannot be enabled on a DB with delayed durability set.
184+
> - Enable delayed durability for a database with Transactional Replication, Change Tracking, or Change Data Capture enabled. You will receive error 22892: Could not enable delayed durability on DB. Delayed durability cannot be enabled on a DB while '_FeatureName_' is enabled.
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)