How the cdc retention value can be changed for the cleanup job?

前端 未结 3 1071
野的像风
野的像风 2021-02-13 10:46

I\'m implementing a logging feature on a asp.net mvc2 application, that uses SqlServer2008 as a database and Entity Framework as a data model.

I enabled CDC feature of S

3条回答
  •  别跟我提以往
    2021-02-13 11:06

    If you want to retain the CDC data indefinitly, you can simply disable the CDC cleanup job:

    1. Open SQL Server Management Studio and connect to your database server
    2. In the object explorer, expand “ | SQL Server Agent | Jobs”
    3. Find the job for cleanup named “cdc._cleanup”.
    4. Right-click the job and select "disable"

    Here is a sample picture of where to find the option:

    How to disable CDC Cleanup

    After you disabled the cleanup job, the CDC data will no longer get removed after a certain time interval.

提交回复
热议问题