Change Tracking on Shadow Database
I keep getting an error when i tried to refresh in ReadyRollDBSync
at the step "Ensuring Shadow Database is up-to-date".
My database uses Change tracking in for its tables.
Here is the error
I'm using Visual Studio 2012 and MS-SQLServer 2012
-Ermias Tefera
at the step "Ensuring Shadow Database is up-to-date".
My database uses Change tracking in for its tables.
Here is the error
Here the table "MyTableName" is a table that will have a change tracking enabled to,and it have a sql script generated in Migration Folder.Change Tracking must be enabled on database '[MyDatabaseName_Administrator_SHADOW]' before it can be enabled on the table 'MyTableName'
I'm using Visual Studio 2012 and MS-SQLServer 2012
-Ermias Tefera
Daniel Nolan
Product Manager
Redgate Software
Product Manager
Redgate Software
Comments
As unfortunately ReadyRoll doesn’t automatically script database-level properties, like whether Change Tracking is enabled, you’ll need to add this as a Pre-Deployment script action. To do so, add a new script under the projects Pre-Deployment folder, e.g.
<<ProjectRoot>>Pre-Deployment2_Enable_ChangeTracking.sql
And include logic to conditionally enable change tracking on the database, for example:
In future, we hope to automate the scripting of such properties. I hope this helps for the moment, however.
Product Manager
Redgate Software