Hello,
I am running SQL 2016 13.0.5201.2 (Enterprise) On Windows Server 2016 Version 1607 (OS Build 14393.2551).
I am trying to enable CDC on a database which is part of an Availability Group. I ran the following command using a login which is a sysadmin:
USE XXX
GO
EXEC
sys.sp_cdc_enable_db;
GO
I get this error message:
Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal, Line 193 [Batch Start Line 6]
Could not update the metadata that indicates database XXX is enabled for Change Data Capture. The failure occurred when executing the command '(null)'. The error returned was 3933: 'Cannot promote the transaction to a distributed transaction because there is an active save point in this transaction.'. Use the action and error to determine the cause of the failure and resubmit the request.
What should I be doing to resolve this? Thanks.