Enable CDC fails with error Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal

Share this Post


While enabling Change Data Capture (CDC) on database you get following error:


You can encounter 22830 error following a database restore\attach when the user account did not exist in the database being restored.  For example, when restoring AdventureWorks while logged on as ‘corp\chris’ and enabling CDC, the user ‘corp\chris’ didn’t exists in original backup of AdventureWorks.

You can change database owner to ‘sa’ or change to ‘sa’ then back to your user account.  This reset the security information allowing you to enable CDC.

Share this Post

3 thoughts on “Enable CDC fails with error Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal”

  1. This error seems to be comming as a result of different problem source. In my case, I was having database which was having some db owner issue. After changing db owner to "SA" it just worked fine. BTW, I did have audit trigger but it didn't give me any trouble even if audit trigger(DDL trigger) was enabled. I hope this helps.



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.