Comments and answers for "Decimal calculations in SQL 2000 vs SQL 2005"
https://ask.sqlservercentral.com/questions/7243/decimal-calculations-in-sql-2000-vs-sql-2005.html
The latest comments and answers for the question "Decimal calculations in SQL 2000 vs SQL 2005"Comment by Oleg on Oleg's answer
https://ask.sqlservercentral.com/comments/14082/view.html
Kev,
I thought that you and I have figured it out at least to some degree. The only problem with 33 digits input is that because the scale wants to stay at 6, the 2000 engine does not see that it is actually possible that the number of significant digits can be less after division, and therefore it should be safe to apply the documented rule to reduce the scale accordingly. This is why we were able to shift 33 to the left leaving 32 integral part digits and 32 + 6 is no longer greater than 38, so it works. In the same fashion we would have to shift the 34 digits input 2 to the left etc.Thu, 29 Apr 2010 13:12:24 GMTOlegAnswer by SQL Kiwi
https://ask.sqlservercentral.com/answers/7248/view.html
<p>SQL Server 2005 never reduces the scale to less than 6 when it encounters a result that requires precision > 38. You might notice that the 'magic number' there (6) is the same as in the documented max expressions.</p>
<p>There have been so many little bugs in this area, it's hard to remember whether this particular issue was fixed in 2005 RTM or later...I can't find the reference for the moment.</p>
<p>The explicit minimum of 6 doesn't appear to be properly documented either, though it is alluded to in many places, including <a href="http://support.microsoft.com/kb/281341" rel="nofollow">this KB article</a></p>
<p>Paul</p>Thu, 29 Apr 2010 11:13:36 GMTSQL KiwiComment by Grant Fritchey
https://ask.sqlservercentral.com/comments/14072/view.html
This might help: http://www.sqlservercentral.com/Forums/FindPost870258.aspxThu, 29 Apr 2010 10:58:11 GMTGrant FritcheyComment by Grant Fritchey
https://ask.sqlservercentral.com/comments/14068/view.html
Haven't a clue, but I'm contacting someone who might.Thu, 29 Apr 2010 09:57:25 GMTGrant Fritchey