Hi SQLServerBro,
Thanks for your reply.
If the CDC jobs are not running, the log space cannot be reused, much as if there was transactional replication with the Log Reader Agent job not running. The log reuse wait description still shows Replication.
Please try to this solution which might be helpful:
- Run the following command in a query window that's connected to the CDC-enabled database in SQL Server: exec sp_repltrans
You should receive output that resembles the following:
xdesid xact_seqno xact_seqno
0x000000260000012C0001 0x0000002A000001B50001
Copy the LSN transaction sequence numbers for the next command.
2.Using the numbers from step 1, run the sp_repldone command as follows to signal that BeginTran and CommitTran LSN pairs are already replicated:
sp_repldone @xactid = 0x000000260000012C0001, @xact_segno = 0x0000002A000001B50001
3.Run the following command to verify that the transaction is marked as replicated in the CDC database:
DBCC OPENTRAN
Please also refer to this blog which might be helpful.
Best Regards,
Amelia
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.