Share via

change data capture

NeophyteSQL 241 Reputation points
2020-09-09T14:22:14.977+00:00

we have some tables with change data capture enabled.

for some reason, we had to disable cdc on the database

now I have turned the cdc back on the tables,

will there the data be sunchronized or will there be any lag in the data capture to the target tables.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. AmeliaGu-MSFT 14,016 Reputation points Microsoft External Staff
    2020-09-10T03:03:00.26+00:00

    Hi @sqlniks-7244,

    I think there may be any data lag after you enabling and disabling CDC.
    If you only stopped the capture job, the change capturing process is not broken, as the changes will be processed once the job is started again. As the feature that can cause a delay in log truncating, the un-scanned transactions will not be overwritten, unless the feature is disabled on the database.
    Please refer to About Change Data Capture and use SQL Server Change Data Capture which might help.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.