Microsoft KB Archive/151069

{|
 * width="100%"|

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

 * }

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 : kbprogramming kbusage

Issue type :

Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600