BUG: AV Declaring Cursor Based on View w/ No Underlying TableLast reviewed: May 2, 1997Article ID: Q151069 |
The information in this article applies to:
SYMPTOMSDeclaring 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 processThe current contents of the process input buffer are "declare myCursor cursor for select * from myView."
WORKAROUNDIf the view is representing constants, for example, consider using a temporary or permanent table to base the cursor on.
STATUSMicrosoft 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |