Microsoft KB Archive/248688

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


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

Article ID: 248688

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server 7.0 Standard Edition



This article was previously published under Q248688

BUG #: 56070 (SQLBUG_70)

SYMPTOMS

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.

CAUSE

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.

STATUS

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.

MORE INFORMATION

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.


Additional query words: parameter marker optimization compile

Keywords: kbbug kbfix KB248688