Microsoft KB Archive/149763

{|
 * width="100%"|

FIX: LockMgr Message on Open of Static Cursor

 * }

Q149763

-

The information in this article applies to:


 * Microsoft SQL Server version 6.0

-

BUG#: 13954 (6.00)

SYMPTOMS
Db-library cursor library or ODBC applications may cause the following message to be logged in the SQL Server error log when they open a static cursor:

spid10 LockMgr: Zero Lock Esc Threshold (TABID=-3351,DBID=2). Default used.

WORKAROUND
Use another cursor type other than static for these queries. Recode the select to see if a query can be found that does not generate the message.

STATUS
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. This problem has been corrected in Microsoft SQL Server version 6.5. For more information, contact your primary support provider.

MORE INFORMATION
The message is only generated on static cursors, not dynamic, keyset, or forward_only cursors. The message also only occurs for some selects, if the cursor is opened on a similar select on the same table, or another table, the message does not occur. The only effect is in sites opening many static cursors that generate the message; in these sites, the space taken up by the messages can be significant.

Additional query words: sql6 cursor

Keywords : kbprogramming

Issue type : kbbug

Technology : kbSQLServSearch kbAudDeveloper kbSQLServ600