FIX: Sp_Cursor Positioned Update Causes Access ViolationLast reviewed: June 27, 1997Article ID: Q161645 |
The information in this article applies to:
SYMPTOMSUnder rare conditions, an sp_cursor positioned update may cause a handled access violation (AV). This can usually be identified by the "sp_cursor" in the input buffer following the errorlog stack trace. The sp_cursor command is typically sent by DB-Library or the ODBC Microsoft SQL Server driver in response to certain DB-Library or ODBC calls. The problem conditions require opening multiple cursors with a certain sequence of differing concurrency options on a stored procedure, such that the cached access plan of a previous cursor is reused by a subsequent cursor with a different concurrency option. The cached plan must be that of a read-only keyset-driven cursor; the stored procedure must reference a table containing a timestamp column; the subsequent cursor must be non-read- only; and a positioned update must be done.
WORKAROUNDTo work around this problem, do any of the following:
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider. |
Keywords : kbbug6.50 kbusage SSrvDB_Lib SSrvGen
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |