Strange failure of Data Compare

Compares and synchronizes SQL database content.

Moderators: Chris Auckland, David Atkinson, richardjm, david connell

Strange failure of Data Compare

Postby dbouchard@tricomputer.com » Wed Nov 16, 2011 10: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???
dbouchard@tricomputer.com
 
Posts: 6
Joined: Thu Mar 11, 2010 5:28 pm

Postby james.billings » Thu Nov 17, 2011 9: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.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to SQL Data Compare Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests