Jorge Paulino
asked on
Arithmetic overflow error for data type smallint
Hi received this message from a cliente. Don't know what is but can anyone help me with some idea (what to do in the place).
2007-09-10 10:05:59 - Rollback (PFUpdateDB)
2007-09-10 10:05:59 - SQLServer Error Keeping message (PFUpdateDB)
2007-09-10 10:05:59 - Failed to update database. (PFUpdateDB)
2007-09-10 10:05:59 - Error executing qryAddResult: Arithmetic overflow error for data type smallint, value = 1224755456[#13][#10]Data:[ #13][#10]1 01I0[#29]1 03I0[#29]1 04I18688[# 29]105I186 88[#29]106 I18688[#29 ]107I12247 55456[#29] 108I215122 10[#29]109 I2[#29]111 I0[#29]118 I0[#29]121 I0[#29]123 I0[#29]300 I122475545 6[#29]301S 2008-10-23 [#29]302S0 9:50:56[#2 9]303SI[#2 9]304S[#29 ]305S12247 55456[#29] 310I0[#29] 311I0[#29] 312I18688[ #29]313I18 688[#29]31 4I12247554 56[#29]315 SELECTROS[ #29]316S[# 29]319I186 88[#29]322 I0[#29]330 I99[#29]34 0I0[#29]34 1I73[#29]9 93I1[#29]9 97S10.21.4 0.193[#29] 995I1[#29] (PFUpdateDB).
Thanks
jpaulino
2007-09-10 10:05:59 - Rollback (PFUpdateDB)
2007-09-10 10:05:59 - SQLServer Error Keeping message (PFUpdateDB)
2007-09-10 10:05:59 - Failed to update database. (PFUpdateDB)
2007-09-10 10:05:59 - Error executing qryAddResult: Arithmetic overflow error for data type smallint, value = 1224755456[#13][#10]Data:[
Thanks
jpaulino
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And the value that's too big is
value = 1224755456
BOL
"Use the smallint data type to store numbers in the range from -32,768 through 32,767 "
value = 1224755456
BOL
"Use the smallint data type to store numbers in the range from -32,768 through 32,767 "
So hunt down all the smallints that the proc references.
ASKER
That is my suspect too!
But maybe changing the type of the table where the stored procedure writes it solve the problem.
But maybe changing the type of the table where the stored procedure writes it solve the problem.
Posting the sp should help...
Simplest solution is to look for all smallints and replace them with integers.
ASKER
I will try latter.
Thanks
Thanks
ASKER
Hi twoboats,
The SQL didn't have any stored procedure and the information I have post it is from the application (error log). So I had only one solution change the table data type from smallint to int and it solve. This in information from equipments and due to an error it sends wrong information.
Thanks again for the help.
jpaulino
The SQL didn't have any stored procedure and the information I have post it is from the application (error log). So I had only one solution change the table data type from smallint to int and it solve. This in information from equipments and due to an error it sends wrong information.
Thanks again for the help.
jpaulino
No prob. Glad it's sorted
PFUpdateDB