Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

SQL Server 2008 R2: How do I know outside of the SQL Agent job history whether or not CDC cleanup has purged obsolete data?

$
0
0

CDC occasionally fails on the cdc cleanup job with errors that look like:

[dbo_myTable_CT] where __$start_lsn < @p2 '. The error returned was 1205: 'Transaction (Process ID 79) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.'. Use the action and error to determine the cause of the failure and resubmit the request. [SQLSTATE 01000] (Message 22852).  The step succeeded.

However, the sql agent job ultimately shows as having successfully completed. Aside from researching the root cause of the deadlock error, I would like to know where to look via a fn_* call, query, etc. to determine if some, all, or none of the data is actually getting purged by the cleanup job.

Please advise.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>