BUG: DYNAMIC Cursor Fails to Release Sh_Page Lock

Last reviewed: April 10, 1997
Article ID: Q159042
The information in this article applies to:
  • Microsoft SQL Server, versions 6.5
  • Microsoft Open Database Connectivity, versions 2.5 and 2.65
BUG #: 16185 (sql server:6.5)

SYMPTOMS

A DYNAMIC cursor may fail to release sh_page lock after sp_cursorclose if both of the following conditions are true:

  • Set implicition_transaction is enabled.
  • The cursor keeps fetching data backward until there is no data found.

An Open Database Connectivity (ODBC) application may encounter this problem when using a server side DYNAMIC cursor with the SQL_AUTOCOMMIT_OFF option. This problem will occur if the ODBC application uses this cursor to keep fetching data backward until there is no data found.

WORKAROUND

To work around this problem, do one of the following:

  • Set implicition_transaction on.
  • Change to the cursor to a SCROLL cursor.
  • Fetch forward rather than backward.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5 and Open Database Connectivity versions 2.5 and 2.65. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words:
Keywords : kbbug6.50 kbinterop kbother SSrvProg
Version : 2.5 2.65 6.5
Platform : WINDOWS


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: April 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.