Back to Flyway

SQL Server Data Treat Empty String As Null Setting

documentation/Reference/Configuration/Redgate Compare Namespace/Redgate Compare SQL Server Namespace/SQL Server Data Comparison Options Namespace/SQL Server Data Treat Empty String As Null Setting.md

latest642 B
Original Source

Description

When this option is selected, empty strings (no characters) will be treated as NULL.

If you want to treat fixed-length fields containing only whitespace as NULL, you must also enable the 'Trim trailing spaces' option.

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.comparison.treatEmptyStringAsNull=true

TOML Configuration File

toml
[redgateCompare.sqlserver.data.options.comparison]
treatEmptyStringAsNull = true