Microsoft KB Archive/892451

= BUG: You receive an &quot;EXCEPTION_ACCESS_VIOLATION&quot; error message when you use a RIGHT OUTER JOIN clause in SQL Server 2000 =

Article ID: 892451

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Developer Edition
 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Personal Edition
 * Microsoft SQL Server 2000 Enterprise Edition
 * Microsoft SQL Server 2000 Workgroup Edition
 * Microsoft SQL Server 2000 Desktop Engine (Windows)
 * Microsoft SQL Server 2000 Developer Edition
 * Microsoft SQL Server 2000 Enterprise Edition 64-bit

-



Bug #: 363638 (SQL Server 8.0)



SYMPTOMS
In Microsoft SQL Server 2000, when you run a query that contains a RIGHT OUTER JOIN clause, you may receive an error message that is similar to the following:

ODBC: Msg 0, Level 19, State 1

SqlDumpExceptionHandler: Process 52 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Connection Broken



Service pack information
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 How to obtain the latest SQL Server 2000 service pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.



Steps to reproduce the problem
To reproduce this problem, run the following query in SQL Query Analyzer: USE pubs go SELECT * FROM titles t RIGHT OUTER JOIN publishers ON publishers.pub_id=t.pub_id AND t.ytd_sales = ( SELECT max(ytd_sales)    FROM titles  WHERE publishers.pub_id=titles.pub_id ) go Note After you run this query, you receive the error message and the SQL Server connection is broken.

Additional query words: AV SQL2000

Keywords: kbtshoot kbbug kbfix KB892451

-

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

© Microsoft Corporation. All rights reserved.