SQL Compare - 10.2

SQL Compare

Creating a rollback script - SQL Compare

If you want to be able to reverse a deployment, or to return a database to a specific state, you can create a rollback script.

Before you run the Deployment Wizard:

  1. In the main window, right click in the Direction Bar, and click Switch deployment direction.
  2. Use the Deployment wizard to create and save a deployment script.

For example, if you are migrating changes from WidgetStaging (the source) to WidgetProduction (the target), switching the deployment direction makes WidgetProduction the source, and the deployment script you create can be run on WidgetProduction in future to restore it to its current state.

You can also roll back a deployment by creating a snapshot when you deploy:

On the first page of the Deployment Wizard, select the Back up target before deployment check box. This adds a page to the wizard where you can choose to create a schema snapshot from the target. The snapshot preserves the state of the target before the deployment, and later can be used as a source, to restore the target to that state.

See also

Using the Deployment wizard

Was this article helpful?

Search support
Forums
Visit the SQL Compare forum.

SQL Compare

all SQL products

all products