Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

How to change retention period to 1day in Change Data Capture (CDC) ?

$
0
0

We have CDC enabled in our Sql Server 2008 R2 to one of the database. I have changed the retention period to 15 minutes with the help of below query. 

sp_cdc_change_job @job_type='cleanup', @retention=minutes

here minutes=15

In MSDB database [msdb].[dbo].[cdc_jobs] table, the retention has changed to 15. But, after 15 minutes when i check the deleted or inserted data in my CDC table, the data still exists. I need that data to be cleaned after 15min. Can anyone help me ?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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