BUG: Arithmetic Overflow Error when Using the Power() FunctionID: Q231159
|
When a Power() function operates on an integer value within a multiplication or division statement, if that statement also contains a floating point value, the following error message occurs:
For example, the following query statement returns the error message:Arithmetic overflow occurred.
select 9520.00 / power(2,4)
select 9520.00 / power(2.0,4)
declare @val float
select @val = power(2,4)
select 9520.00 / @val
Microsoft has confirmed this to be a problem in SQL Server version 6.5 Service Pack 5a.
Additional query words:
Keywords : kbSQLServ650sp5bug
Version : winnt:6.5 Service Pack 5a
Platform : winnt
Issue type : kbbug
Last Reviewed: May 24, 1999