Red Gate forums :: View topic - Issue comparing field values of type real equal to 0
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK 10
SQL Comparison SDK 10 forum

Issue comparing field values of type real equal to 0

Search in SQL Comparison SDK 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
SQLAdminCJ



Joined: 28 Dec 2011
Posts: 10

PostPosted: Mon Jun 25, 2012 8:41 am    Post subject: Issue comparing field values of type real equal to 0 Reply with quote

Hello,

I am having an issue with the SDK where it is generating diff queries to set real field values equal to 0 that already appear as 0 in both databases (i.e. this field is being registered as different when it is not different).

Perhaps, since the fields are of type real, they contain very small numbers that are appearing as 0 in SQL Server Management Studio?

In any case, how do I avoid having the SDK consider these fields different? Is there a parameter I can set? Please advise. Thanks.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1120
Location: My desk.

PostPosted: Tue Jun 26, 2012 3:25 pm    Post subject: Reply with quote

Thanks for your post.
We've had issues in the past with FLOATs where a difference is seen due to SQL Data Compare not using the full precision when comparing. We added a comparison option in V10 to use the full precision and it looks like you can utilise this in the SDK too:

Code:
ComparisonOptions.Default | ComparisonOptions.UseFullPrecisionForComparison


Not sure if this works for REAL though; but it's worth a try...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group