Char(n) columns not comparing correctly in 5.3.0.68
NeedyInfo
Posts: 3
When I compare table A in database A to the exact same table (structure and data) table A in database B the char(n) columns do not compare correctly. Data Compare reports differences in about 10% of the rows even though the data in the rows are exactly the same. This is between database A and database B on the same sql2005 server both with compatibility set to 9.0. When I check the strings with TSQL functions Difference(), Datalength() and Len() the string functions return the exact same result. Is this a bug in Data Compare??
NeedyInfo
Comments
There's two things to check: firstly, have a look in the textual difference viewer (double click on one of the "different" values). This should give you a better idea of exactly where we think the data differs, which might give you some more clues.
Secondly, have you checked whether the two columns are the same collation on both databases? This can certainly affect what's considered equal.
Hope that helps,
Robert
Red Gate