CDC - Error while enabling CDC on table level

  • I am trying to enable CDC feature in SQL Server 2012 Enterprise Edition ( 11.0.2424.0).

    The command to enable CDC for Database worked fine, but the command for enabling CDC on Table failed.

    Command used for enabling CDC on table is as follows.

    USE DatabaseName

    GO

    EXEC sys.sp_cdc_enable_table

    @source_schema = N'dbo',

    @source_name = N'TableName',

    @role_name = NULL,

    @supports_net_changes = 1

    Following is the error message got

    Msg 22832, Level 16, State 1, Procedure sp_cdc_enable_table_internal, Line 623

    Could not update the metadata that indicates table [dbo].[TableName] is enabled for Change Data Capture. The failure occurred when executing the command '[sys].[sp_cdc_add_job] @job_type = N'capture''. The error returned was 22836: 'Could not update the metadata for database DatabaseName to indicate that a Change Data Capture job has been added. The failure occurred when executing the command 'sp_add_jobstep_internal'. The error returned was 14234: 'The specified '@server' is invalid (valid values are returned by sp_helpserver).'. 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.

    How to fix this?

  • Have you recently renamed your SQL Server instance?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • This was removed by the editor as SPAM

  • Yes, the instance was renamed

  • There's a post which may help you here.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply