Identify committed transactions

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.

more ▼

asked Jan 04, 2016 at 03:12 PM in Default

avatar image

Sagar Bhargava
638 26 30 34

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jan 04, 2016 at 06:04 PM

avatar image

Grant Fritchey ♦♦
137k 20 46 81

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Jan 04, 2016 at 03:12 PM

Seen: 109 times

Last Updated: Jan 04, 2016 at 06:04 PM

Copyright 2018 Redgate Software. Privacy Policy