FIX: Access Violation When Using UNIONs in Transact-SQL Cursors (233190)
The information in this article applies to:
This article was previously published under Q233190
BUG #: 54345 (SQLBUG_70)
SYMPTOMS
If a UNION appears as a subquery or derived table and the UNION contains parameters or local variables, the connection will get an access violation (AV). You will receive an error message similar to the following:
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
WORKAROUND
To work around this problem, try either of the following:
- Do not use a UNION as a derived table.
-or- - If you do use a UNION, make sure it does not contain parameters or local variables.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 232570INF: How to Obtain Service Pack 1 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 3/14/2006 |
---|
Keywords: | kbBug kbfix KB233190 |
---|
|