Strange failure of Data Compare

Compares and synchronizes SQL database content.

Strange failure of Data Compare

Postby » Wed Nov 16, 2011 9:49 pm

I often use SQL Data Compare and recently have been running into some strange results. I compare 2 dbs, select synchronization of the differences (which happen to be in float columns) and then when the rescan is done, it again shows the same columns as being different. I have a screenshot of what appears to me to be the exact same values in a particular field AFTER SDC did its synchronization thing and I can't ever seem to get the diff to go away. Thoughts???
Posts: 11
Joined: Thu Mar 11, 2010 4:28 pm

Postby james.billings » Thu Nov 17, 2011 8:43 pm

Thanks for your post.

The float datatype does cause problems in Data Compare from time to time unfortunately. It can occur when the two db's return the data back with slightly different precisions.

You can try ticking the option to "force binary collation" as this will occasionally result in them being reported in a way that they match. Asides from that, the other option is to create a view in each DB that will cast/convert the floats down to a lesser number of decimal places, and then compare the views.
Unfortunately you often cannot then sync these back as we only sync views back to tables on a simple select as far as I know (i.e. not where you have any functions)

We have a couple of bugs logged in this area but as yet I don't know of a timescale to get them looked at.
Posts: 1122
Joined: Wed Jun 16, 2010 10:10 am
Location: Red Gate

Return to SQL Data Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests