Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fixed numeric passed as float, why and how to avoid
Message
 
 
To
30/12/2015 02:38:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01629363
Message ID:
01629459
Views:
39
The reason I used CAST(?myVar as same as SQL Server column definition) was primarily to avoid implicit conversion and therefore making the query non-sargable. I wanted to ensure that we're not doing any conversions for the column as float has higher precedence than numeric.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform