Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi,I have set a field property as decimal(18,2).But whenever I update a value like 2.40, it stores and returns 2.00 and 3.00 when I try 2.5Please help.
Lamprey
Master Smack Fu Yak Hacker
4614 Posts
Posted - 2010-09-10 : 12:19:26
Seems to work for me. Are you using a DECIMAL variable that you did not specify the precision and scale for? Becasue if you didn't the default is a scale of zero, which acts like a int/bigint.