Click here to Skip to main content
15,905,233 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello CP,

Can anyone help me out on what datatype should I use to perform operations on values of greater than 38 digits. Tried different datatypes,google & logic to split store them but all in vain.

Thanks in advance.
Posted

1 solution

Hi,

it's beyond SQL capacity and you will have
"Arithmetic overflow error converting expression to data type bigint."

I have try tis only with 19 digits

SQL
declare @bigint1 bigint = 9223372036854775807;
select @bigint1 * @bigint1


Bechir.
 
Share this answer
 

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