Is there a way to identify committed transactions which are no longer active and not yet moved by the capture process and how much transaction log space they are using in a CDC enabled database?
I can get the details for Active processes using sys.dm_tran_database_transactions DMV.
asked Jan 04, 2016 at 03:12 PM in Default
No. Once a transaction is committed, it's written to the log and is not open to being queried. If CDC is in place, that's part of a successfully completed transaction, so it should be in the CDC data too. It's not something you can query. There is an undocumented function that lets you read the log, but I'm not sure what you'll be looking for there. All completed transactions are in the log.
answered Jan 04, 2016 at 06:04 PM
Grant Fritchey ♦♦