Back to Flyway

SQL Server Data Skip Integrity Checks For Foreign Keys Setting

documentation/Reference/Configuration/Redgate Compare Namespace/Redgate Compare SQL Server Namespace/SQL Server Data Deployment Options Namespace/SQL Server Data Skip Integrity Checks For Foreign Keys Setting.md

latest626 B
Original Source

Description

Uses WITH NOCHECK to skip integrity checks for foreign key constraints. If you select this option:

  • deployments may run faster.
  • foreign keys will be left in a 'not trusted' state.

Type

Boolean

Default

false

Usage

Flyway Desktop

This can be set from the data comparison options settings in SQL Server projects.

Command-line

powershell
./flyway diff -redgateCompare.sqlserver.data.options.deployment.skipIntegrityChecksForForeignKeys=true

TOML Configuration File

toml
[redgateCompare.sqlserver.data.options.deployment]
skipIntegrityChecksForForeignKeys = true