Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot get the decimals portion of a numeric field
Message
From
04/04/2008 12:27:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Cannot get the decimals portion of a numeric field
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01308259
Message ID:
01308259
Views:
57
I have a SQL command that is included some calculcated fields such as:
SELECT Client.Name,0 AS Amount FROM Client
Then, later on in the code, I can assign a value in the Amount field by the use of the DataRow. This is working good as long as I am using VFPOleDb. As soon as I switch to the SQLClient provider to use a SQL Server backend, I have found out that even if I put 23.23 in the Amount field, I will end up with 23.

I need to avoid changing the SQL. Is there a way down below the code that I can adjust the datatype for that column so it will know that I wish to deal with decimals?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform