SQL Server Data Treat Empty String As Null Setting
Published 15 January 2025
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
./flyway diff -redgateCompare.sqlserver.data.options.comparison.treatEmptyStringAsNull=true
TOML Configuration File
[redgateCompare.sqlserver.data.options.comparison]
treatEmptyStringAsNull = true