Sunday January 21st 2018

Categories

Insider

Archives

Precision and Scale in Sql Server

We are writing this post because recently we received a query regarding automatic rounding in quantity column. The user was previously using MS Access and they upgraded to SQL Server database. Although solution is simple but sometimes it becomes difficult to resolve when confronting the problem.
SQL Server Books online very well addressed the concern and is reproduced below;

Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.