How can I make SQL Server return FALSE for comparing varchars with and without trailing spaces?
From the docs on LEN (Transact-SQL): Returns the number of characters of the specified string expression, excluding trailing blanks. To return the number of bytes used to represent an expression, use the DATALENGTH function Also, from the support page on How SQL Server Compares Strings with Trailing Spaces: SQL Server follows the ANSI/ISO SQL-92 specification … Read more