I use ChangeTracking in SQL 2012 and IsAutoCleanup is true. But my settings have no effect on the actual situation. I put 1 hour, 5 hours, 10 minutes, 2 minutes, 40 minutes, but the cleaning is always carried out in about 2 days. Sometime earlier, sometime later, but not even about my settings. In what could be the problem? Settings accurately exposed, check out this:
select * from sys.change_tracking_databases where database_id=8
database_id is_auto_cleanup_on retention_period retention_period_units retention_period_units_desc max_cleanup_version----------- ------------------ ---------------- ---------------------- ------------------------------------------------------------ --------------------
8 1 1 2 HOURS NULL
And that less cleaning occurred in 2 days.