We are receiving the following error when inserting our data into a SQL Server table:
Arithmetic overflow error converting numeric to data type numeric
The data we are inserting looks like this:
INSERTED.ID VALUES(0, 'Blah Blah', 6202, 2, -697937977842128, -179239499006078, 529122280867677, -682697977842128, -163999499006078, 529445721858303, -690317977842128, -171619499006078, 52928400136299, 1000)
But the column definitions for the big numbers are all Decimal(18,9) so I am not sure why we are getting this error.
Decimal(18,9)
means the integer part can be no more than 9 digits (18-9). – mustaccio Jan 18 at 19:21