Article ID: 279319 - View products that this article applies to.
This article was previously published under Q279319
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57966 (SQLBUG_70)
Running a query with two or more nested IN clauses and a CASE statement may cause the connection to be broken and the following error to be returned:
ODBC: Msg 0, Level 19, State 1
SqlDumpExceptionHandler: Process 7 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process. Connection Broken
The query caused a handled exception in SQL Server, and the process was stopped.
To work around this problem, replace the IN clause with a SELECT COUNT(1) > 0 statement. For example, part of the query that looks like the following:
Can be rewritten as:
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(http://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
Contact us for more help
Connect with Answer Desk for expert help.