Hello!
We are working on automating deployments for our SQL Server 2012 SP1 instance that uses CDC. We are getting the following error when we try to run:
exec sys.sp_cdc_disable_table
@source_schema = N'dbo',
@source_name = N'SUser',
@capture_instance = N'all'
Error:
Msg 22833, Level 16, State 1, Procedure sp_cdc_disable_table_internal, Line 148
Could not update the metadata that indicates table [dbo].[SUser] is not enabled for Change Data Capture. The failure occurred when executing the command 'sp_cdc_disable_table_tranx'. The error returned was 22837: 'Could not delete table entries or drop objects
associated with capture instance 'dbo_SUser'. The failure occurred when executing the command 'sp_cdc_drop_change_table_objects dbo_SUser'. The error returned was 14677: 'The user does not have permission to perform this operation. The user must be a member
of data collector role 'mdw_admin'.'. Use the action and error to determine the cause of the failure and resubmit the request.'. Use the action and error to determine the cause of the failure and resubmit the request.
I am troubleshooting this as sysadmin running the query from SSMS. I have scoured the forums and the googles, but I can't really find any info on this. The error mentions that the user must be a member of data collector role, which we spelled out explicitly also just for the fun of it (didn't help....).
Any ideas?
Any help is much appreciated!
Thanks!
-Bill S.