BUG: AV Declaring Cursor Based on View w/ No Underlying Table

Last reviewed: May 2, 1997
Article ID: Q151069

The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG#: 15028 (6.00)

SYMPTOMS

Declaring a cursor based on a view that has no underlying table can cause a handled thread level access violation (AV) in Microsoft SQL Server 6.0.

In version 6.0 the error reported and written to the errorlog, looks like:

   Error : 0, Severity: 19, State: 0
   language_exec: Process 12 generated access violation; SQL Server is
   terminating this process


The current contents of the process input buffer are "declare myCursor cursor for select * from myView."

WORKAROUND

If the view is representing constants, for example, consider using a temporary or permanent table to base the cursor on.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.0. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur in Microsoft SQL Server version 6.5.


Additional query words: AV cursor view table
Keywords : kbbug6.00 kbprg kbusage SSrvErr_Log SSrvProg
Version : 6.0 6.5
Platform : WINDOWS
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.