FIX: Keyset, Dynamic and Forward Only Cursor Queries May not Get Auto-Parameterized

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


Applications that repetitively run non-parameterized but similar queries through a keyset, dynamic or forward only cursor may experience slower performance than if the same queries were run with a different cursor type.


When submitted through the cursor, the queries are not being auto-parameterized. As a result, every query is compiled individually, resulting in a longer aggregate execution time than expected.


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


With this fix installed, the query plan is auto-parameterized on the first run, increasing the performance of subsequent runs once the plan is in cache.


Article ID: 248688 - Last Review: October 22, 2013 - Revision: 2.0
  • Microsoft SQL Server 7.0 Standard Edition
kbnosurvey kbarchive kbbug kbfix KB248688

Contact us for more help

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