I have executed this query on 2 different databases:
Update table1 set
PresencePayFactor = cast(30 as decimal (4,2))/ 30
it is working on one but not on the other.
the 2 databases are sql server 2008 R2
it is giving the following error
“Arithmetic overflow error converting numeric to data type numeric.”
What may be the problem?
Is NUMERIC_ROUNDABORT set differently between the two?
SET NUMERIC_ROUNDABORT (Transact-SQL)