If I deliberately store trailing spaces in a VARCHAR column, how can I force SQL Server to see the data as mismatch?
SELECT \'foo\' WHERE \'bar\
After some search the simplest solution i found was in Anthony Bloesch WebLog.
Just add some text (a char is enough) to the end of the data (append)
SELECT 'foo' WHERE 'bar' + 'BOGUS_TXT' = 'bar ' + 'BOGUS_TXT'
Also works for 'WHERE IN'
SELECT
FROM
WHERE + 'BOGUS_TXT' in ( SELECT + 'BOGUS_TXT' FROM )