Microsoft KB Archive/152264

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

Article ID: 152264

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 6.0 Standard Edition
 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q152264





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: kbbug kbfix kbprogramming kbprb KB152264

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.