IBM Support

Restoring a Microsoft SQL Server Change Data Capture database

Troubleshooting


Problem

Attempts to restore a Microsoft SQL Server database with Change Data Capture (CDC) enabled to an alternate location result in failures

Symptom

The restore operation, upon processing the last object and attempting to activate the database, returns messages similar to the following:

An exception occurred while executing a Transact-SQL statement or batch. Could not update the metadata that indicates database <Alternate Database Name> is not enabled for Change Data Capture. The failure occurred when executing the command '[sys].[sp_cdc_drop_objects]'. The error returned was 3729: 'Cannot drop schema 'cdc' because it is being referenced by object '<Object Name>'

[{"Product":{"code":"SSER7G","label":"IBM Spectrum Protect for Databases"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Data Protection for MS SQL","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB69","label":"Storage TPS"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
17 June 2018

UID

swg22009330