I have the value as 2800320 which I need to insert to table for numeric(9, 4) datatype. In the code I have given as float.Parse(record.Substring(i, 8)).When I insert to sql arithmetic overflow error occurs. Pls tell how to correct this?
-
Is that a date, with a typo? Just curious with today being 28-03-20 and all..Caius Jard– Caius Jard2020-03-28 05:55:22 +00:00Commented Mar 28, 2020 at 5:55
-
No..Its not date :)Anjana Jain– Anjana Jain2020-03-28 05:58:10 +00:00Commented Mar 28, 2020 at 5:58
-
Can you share the code which inserts the data in table along with sample values? Which type of database it is? Ms SQL or my SQL?Chetan– Chetan2020-03-28 05:58:57 +00:00Commented Mar 28, 2020 at 5:58
-
Numeric(9,4) can not store 7 digit number coz it can accommodate only number with 5 digit before decimal point and 4 digits after decimal point. stackoverflow.com/questions/60897745/…Chetan– Chetan2020-03-28 06:04:04 +00:00Commented Mar 28, 2020 at 6:04
Add a comment
|