ReadyRoll 1

Configuring comparison & script generation options

The ReadyRoll tool-window provides an effective way to generate new migration scripts within your database project. The tool uses the industry-standard Redgate SQL Compare (and Data Compare) engine, and for the most part uses the factory default comparison and script generation options that ship with SQL Compare itself.

If fine-grained control is required over the script-generation behavior, then the standard SQL Compare settings can be customized at the project level.

Customising database comparison & script generation options

In order to set the desired script comparison and generation options, some editing of your database project's .sqlproj file is required.

Start by opening your solution in Visual Studio. Right-click the database project in the Solution Explorer and select Unload Project.

Then, click Edit project.

Choose from one or more of the available database comparison and script generation options. These are listed below along with the default value that ReadyRoll uses:

Schema comparison options

  <!-- "Deploy all dependencies" SQL Compare option -->

  <!-- "Add object existence checks" SQL Compare option -->

  <!-- "Use DROP and CREATE instead of ALTER" SQL Compare option -->

  <!-- "Disable DDL triggers during deployment" SQL Compare option -->

  <!-- "Ignore extended properties" SQL Compare option -->

  <!-- "Ignore comments" SQL Compare option -->

  <!-- "Ignore SET QUOTED_IDENTIFIER and SET ANSI_NULLS statements" SQL Compare option -->

  <!-- "Ignore collations" SQL Compare option -->

  <!-- "Force column order" SQL Compare option (set to False to force column order) -->

  <!-- "Ignore database and server name in synonyms" SQL Compare option -->

  <!-- "Ignore tSQLt framework and tests" SQL Compare option -->

  <!-- "Ignore DML triggers" SQL Compare option -->

  <!-- "Ignore INSTEAD OF triggers" SQL Compare option -->

  <!-- "Ignore filegroups, partition schemes and partition functions" SQL Compare option -->

  <!-- "Ignore NOT FOR REPLICATION" SQL Compare option -->

  <!-- "Ignore fill factor and index padding" SQL Compare option -->

  <!-- "Ignore LOCK properties of indexes" SQL Compare option -->

  <!-- "Ignore statistics" SQL Compare option -->

  <!-- "Ignore data compression" SQL Compare option -->

  <!-- "Ignore full-text indexing" SQL Compare option -->

  <!-- "Ignore replication triggers" SQL Compare option -->

  <!-- "Ignore indexes" SQL Compare option -->

  <!-- "Ignore permissions" SQL Compare option -->

  <!-- "Ignore white space" SQL Compare option -->

  <!-- "Ignore WITH NOCHECK" SQL Compare option -->

  <!-- "Ignore identity seed and increment values" SQL Compare option -->

  <!-- "Use case-sensitive object definition" SQL Compare option -->
  <!-- "Ignore bindings" SQL Compare option -->

  <!-- "Ignore event notification on queues" SQL Compare option -->

  <!-- "Ignore square brackets in object names" SQL Compare option -->

  <!-- "Ignore WITH element order" SQL Compare option -->

  <!-- "Ignore WITH ENCRYPTION" SQL Compare option -->
  <!-- "Ignore authorization on schema objects" SQL Compare option -->

  <!-- "Ignore STATISTICS_NORECOMPUTE property on indexes" SQL Compare option -->

  <!-- "Consider next filegroups in partition schemes" SQL Compare option -->
  <!-- "Ignore NOCHECK and WITH NOCHECK" SQL Compare option -->

  <!-- "Ignore user properties" SQL Compare option -->

  <!-- "Ignore users' permissions and role memberships" SQL Compare option -->

  <!-- "Add WITH ENCRYPTION" SQL Compare option -->

  <!-- "Decrypt encrypted objects" SQL Compare option -->

  <!-- "Use database compatibility level" SQL Compare option -->

Data comparison options

  <!-- "Drop primary keys, indexes, and unique constraints" SQL Data Compare option -->

  <!-- "Disable foreign keys" SQL Data Compare option -->

  <!-- "Include timestamp columns" SQL Data Compare option -->

  <!-- "Use case-sensitive object definition" SQL Data Compare option -->

  <!-- "Force binary collation (case-sensitive)" SQL Data Compare option -->

  <!-- "Trim trailing white space" SQL Data Compare option -->

  <!-- "Disable DML triggers" SQL Data Compare option -->

  <!-- "Disable DDL triggers" SQL Data Compare option -->

  <!-- "Don't include comments in the deployment script" SQL Data Compare option -->

  <!-- "Reseed identity columns" SQL Data Compare option -->

  <!-- "Skip integrity checks for foreign key constraints" SQL Data Compare option -->

  <!-- "Transport CLR data types as binary" SQL Data Compare option -->

  <!-- "Compress temporary files" SQL Data Compare option -->

  <!-- "Treat empty string as NULL" SQL Data Compare option -->

  <!-- "Use checksum comparison" SQL Data Compare option -->

  <!-- "Use maximum precision for floats" SQL Data Compare option -->


To override a given option, copy the option to the top of the project file within a <ProjectGroup> element. For example, to have ReadyRoll ignore DML trigger objects when importing from your connected database, add the following under the <Project> element of your project file:

Example option snippet


Save the project file, and right-click the project in the Solution Explorer and click Reload project (click OK when prompted to close the file).

Build the solution to clear the tool-window cache.

The next time you use the tool-window to import changes from the connected database, the specified comparison and script generation options should be applied.

Unsupported options

Options that are "locked" to ensure deployment reliability

A number of SQL Compare options would, if switched on, cause scripts to be generated that might not work within all of your target environments. In order to ensure that a given migration can be successfully executed against all of your databases, there are a number of options that are locked to the Off setting:

  • Ignore constraint names
  • Ignore system-named constraint names
  • Ignore DML trigger order
  • Ignore certificates, symmetric keys and asymmetric keys
  • Ignore check constraints
  • Ignore foreign keys
  • Ignore identity properties
  • Ignore nullability of columns
  • (Data Compare) Ignore underscores in object names
  • (Data Compare) Ignore spaces in object names
  • (Data Compare) Include indexed views
  • (Data Compare) Exclude identity columns

Other locked options

Additionally, a number of script generation options are locked, as follows:

  • Don't use transactions in deployment scripts = On. ReadyRoll automatically includes transaction handling to your deployment. To prevent transactions from being used, see transaction handling in ReadyRoll.
  • Don't add error handling statements to deployment scripts = On. ReadyRoll uses the error-handling conventions of SQLCMD, which do not require the per-statement error handling of SQL Compare.
  • Add Database Use Statement = Off. ReadyRoll automatically sets the database context prior to executing your migration script, so it is not necessary to include the USE statement in your scripts.
  • Do Not Output Comment Header = On. ReadyRoll produces its own comment header in the .sql files that are output during the build process.
  • Ignore migration scripts for databases = On. This option relates to the SQL Source Control product and therefore is not relevant to ReadyRoll script generation.
  • Database Project compatible script folder output = Off. This option relates to SQL Server Data Tools (SSDT) database projects and therefore is not relevant to ReadyRoll script generation.
  • Don't use ALTER ASSEMBLY to change CLR objects = Off. If you would like to apply greater control to how your SQLCLR objects are deployed, we recommend using the method described in this article on deploying Assemblies.

Currently unsupported options

Support for the following options has yet to be added to ReadyRoll:

  • As of ReadyRoll 1.13.17 (November 8th, 2016), all SQL Compare/Data Compare options are supported


Didn't find what you were looking for?