Skip to content

Commit d99cf63

Browse files
troymoen1rwestMSFT
authored andcommitted
Update replication-log-reader-agent.md
Updating the "maxcmdsintran" warning to be more clear that primary key errors can occur when modifying it under any circumstance, not just CDC.
1 parent 81ac2fe commit d99cf63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/relational-databases/replication/agents/replication-log-reader-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ logread [-?]
135135
> **MaxCmdsInTran** was not designed to be always turned on. It exists to work around cases where someone accidentally performed a large number of DML operations in a single transaction (causing a delay in the distribution of commands until the entire transaction is in the distribution database, locks being held, etc.). If you routinely fall into this situation,review your applications and find ways to reduce the transaction size.
136136
137137
> [!WARNING]
138-
> **MaxCmdsInTran** is not supported if the given publication database is enabled for both Change Data Capture and replication. Using **MaxCmdsInTran** in this configuration may lead to data loss in CDC change tables. It may also cause PK errors if the **MaxCmdsInTran** parameter is added and removed while replicating a large Transaction.
138+
> Primary key errors may occur if the **MaxCmdsInTran** parameter is added and removed while replicating a large Transaction. **MaxCmdsInTran** is not supported if the given publication database is enabled for both Change Data Capture and replication. Using **MaxCmdsInTran** in this configuration may lead to data loss in CDC change tables.
139139
140140
**-MessageInterval** _message_interval_
141141
Is the time interval used for history logging. A history event is logged when the **MessageInterval** value is reached after the last history event is logged.

0 commit comments

Comments
 (0)