SQL Server Data Trim Trailing White Space Setting
Published 15 January 2025
Description
If the data in two columns differs only by whitespace at the end of the string, the data will be considered to be identical. This option applies to the following data types:
- char
- varchar
- text
- nchar
- nvarchar
- ntext
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.trimTrailingWhiteSpace=true
TOML Configuration File
[redgateCompare.sqlserver.data.options.comparison]
trimTrailingWhiteSpace = true
This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved