| Author |
Message |
SQLAdminCJ
Joined: 28 Dec 2011 Posts: 10
|
Posted: Mon Jun 25, 2012 8:41 am Post subject: Issue comparing field values of type real equal to 0 |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 840 Location: My desk.
|
Posted: Tue Jun 26, 2012 3:25 pm Post subject: |
|
|
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 |
|
 |
|
|
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