Applying changes to a DB under Change Data Capture

Forum for users of SQL Compare schema synchronization utility

Applying changes to a DB under Change Data Capture

Postby jahmann » Fri Aug 31, 2012 7:35 pm

Hi - I ran into a problem while applying some changes to a Dev database that had CDC enabled on most tables - got an error like this:

Cannot alter column 'CoverageAreaTypeCode' because it is 'enabled for Replication or Change Data Capture'.

I was able to work around these issues, but was wondering:
1 - is there something that I can do in SQL Compare to avoid this problem in the future (it didn't notice I had CDC on in the target), or
2 - are there techniques that I can employ to safely/easily promote changes to a DB that is running CDC ?

I plan on googling for some best practices, but I figured some of you may have already encountered this kind of problem and have some quick advice.
Posts: 2
Joined: Wed Dec 01, 2010 7:35 pm

Postby Chris Auckland » Mon Sep 03, 2012 6:18 pm

Thanks for your post.

I'm afraid we don't have any specific support to handle cdc enabled databases. I think you would need to disable cdc on the object before you try to deploy the changes with SQL Compare and then turn it on again afterwards.

This might be something that SQL Compare could do as part of the deployment script, so it might be worth logging a feature request for it on our uservoice site: ... uggestions
Chris Auckland
Posts: 760
Joined: Tue Oct 24, 2006 1:12 pm
Location: Red Gate Software Ltd.

Return to SQL Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests