FIX: Keyset Cursor Fetches Same Row Repeatedly

Article translations Article translations
Article ID: 274811 - View products that this article applies to.
This article was previously published under Q274811
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57997 (SQLBUG_70)
Expand all | Collapse all

SYMPTOMS

If a keyset cursor is declared on a table, the cursor may fetch the same row repeatedly. This problem occurs if both of the following conditions are true:
  • The table contains a foreign key constraint.

    -and-
  • A column that makes up the keys of that foreign key constraint is updated through the cursor.
The problem applies to all keyset server side cursors (both Transact-SQL and API server keyset cursors).

The client application opening the cursor may appear to stop responding (hang) or loop forever, returning the same record.

WORKAROUND

To work around this problem, either remove the foreign key constraint on the table or consider using a dynamic or client side cursor (or no cursor).

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 274811 - Last Review: October 21, 2013 - Revision: 2.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB274811

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com