BUG: Correlated Subquery in Col. List May Cause Divide by ZeroLast reviewed: April 15, 1997Article ID: Q163909 |
The information in this article applies to:
SYMPTOMSComplex queries may cause an unhandled Divide By Zero exception error that causes SQL Server to shut down. The query must include the following things for this problem to occur:
WORKAROUNDTo work around this problem, rewrite the correlated subquery, using a join in the Where clause.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0 Service Pack 3. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThis problem occurs while optimizing the query. It even occurs if you use SET NOEXEC ON. In addition to the unhandled exception error, the following error also appears in the errorlog:
Error : 913, Severity: 22, State: 2 Could not find row in Sysdatabases with database id 0. Run DBCC CHECKTABLE on Sysdatabases. |
Additional reference words: 6.00 sp3 6.00.sp3 ANSI
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |