Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Floating point and remote views
Message
From
21/07/2011 11:30:34
 
 
To
21/07/2011 11:14:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01518756
Message ID:
01518789
Views:
45
>I'll give it another shot. I tried the B(16) in the DBSetprop as you showed below but in my DBCX it still show B with a length of 8 ( whatever that means ) and Binary = .f.


That is correct - the 8 refers to the number of bytes used to store the value in memory or in the table

>They just used float for everything, including fields that would go into the millions but with only 2 or 3 decimals and other fields with values that would never be more than 1 but could go 10 decimals.)
>
>What would be the proper data types in SQL to do the cast on the sql select in the remote view for those two cases so they would make sense to VFP?

In that case I would prefer b(16), ie max 16 digits of precision but the max value is around 8.9884656743115E307 - for the millions


You may also change that data type to N(xxx, yyy) depending on the case
field - millions but with only 2 or 3 decimals
- never be more than 1 but could go 10 decimals.
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform