Hello
I have too many decimal fields are in my system.When I save large value it will throw error "Coversion overflow".
Is there any way to handle error without changing model or db ? I want to show the message to user that please enter valid value for the fields.
I want to make generic so i do not want to write for each field.
awaiting for your reply

Munesh SharmaRank #174 · 13.9K reputationPosted May 12, 2015, 9:34 PM EDT
https://social.msdn.microsoft.com/Forums/en-US/a97e9bcd-b285-4670-9e61-acac4567db6a/conversion-overflow-error-while-mapping-large-decimal-value?forum=adodotnetdataproviders
https://msdn.microsoft.com/en-us/library/system.data.sqltypes.sqldecimal.aspx
keyurRank #5,481 · 298 reputationPosted May 12, 2015, 9:43 PM EDT
But I did not get enough idea from the link you given.Can you please tell how to achive this?
Thanks
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 12, 2015, 9:44 PM EDT
Check the target column size for each column where the value is computed by a formula. Consider either expanding the size of the target or rcolumn educing the allowable values in the formula's source columns.
keyurRank #5,481 · 298 reputationPosted May 13, 2015, 3:38 AM EDT
keyurRank #5,481 · 298 reputationPosted May 12, 2015, 9:46 PM EDT