SQL Server Data Treat Empty String As Null Setting

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

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?