Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project i have created one windows application using vb.net.
I have created one new data set (Add->new->dataset). Dataset getting value from sql query.But am getting error
'Arithmetic over flow ' while loading data in to dataset. Value from the query is 1.80357142857143
How can i store this value in dataset?
I changed the datatype of that field in dataset.i set that as double but still am getting same error.
plz help
Posted
Updated 28-May-13 0:06am
v2
Comments
IpsitaMishra 28-May-13 5:38am    
I think you should decrease the precision while fetching the data from db.
Am Gayathri 28-May-13 5:47am    
How can i do that?
LeoCon 28-May-13 5:40am    
do you tried with Decimal Type?
Am Gayathri 28-May-13 5:57am    
Yes..That is also not working

1 solution

in your select query try CAST like
select cast(FieldName As numeric(18,2)) from TableName
 
Share this answer
 
Comments
Am Gayathri 28-May-13 6:19am    
Thanks a lot..This is working...:)
Basmeh Awad 28-May-13 6:21am    
Welcome:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900