FIX: Five-way Table Join w/OR May Cause Handled Exception

ID: Q152264


The information in this article applies to:
  • Microsoft SQL Server versions 6.0, 6.5


SYMPTOMS

A five-way (or more) table join with a search clause introduced by an OR clause may cause handled exception which terminates the client thread.


WORKAROUND

Rewrite the query such that the rows not in the join qualify for the query because of the OR clause.


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server version 6.0, and in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.


MORE INFORMATION

Here is an example of the type of query that would cause this problem:


   SELECT * FROM A, B, C, D, E
   WHERE A.id = B.id AND B.bid = C.bid AND C.cid = D.cid AND D.did = E.did
   OR A.column1 = "test" 

Additional query words: multiple access violation

Keywords : kbprg SSrvProg kbbug6.50 kbbug6.00 kbfix6.00.sp3 kbfix6.50.sp1
Version : 6.0 6.5
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: March 28, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.