Click here to Skip to main content
16,014,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
use regimen 
SET IDENTITY_INSERT data  ON 
insert into data (firstname,lastname,quantity,rollno) values ('tiGzdrVVzyGzHGEOuRPBYwuFZpKaVYqQbSZYsEHyjRKt','PsqAmzUFTW',62313539.54,03615) 
SET IDENTITY_INSERT  data OFF 


while inserting i got this error

Arithmetic overflow error converting numeric to data type numeric.
The statement has been terminated.


what i made mistake in this? can anyone say solution to solve my problem
Posted
Updated 23-Jun-11 23:05pm
v2

1 solution

Have a look at your quantity field definition

You are trying to insert 62313539.54 into this field, if your field is defined as something like numeric(4,2) you will see this error.

For that number, the field definition needs to be at least numeric(10, 2)
 
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