BUG: Attentions When Using Text Based Insensitive/Keyset Cursors can Result in Closetable Errors (238336)
The information in this article applies to:
This article was previously published under Q238336
BUG #: 18814 (SQLBUG_65)
SYMPTOMS
When using insensitive/keyset cursors on text columns, closetable errors may occur if the cursors receive attentions.
For the closetable errors to occur, the following sequence of events need to occur:
- A server process id (spid) performs a sp_cursoropen and other sp_cursor related operations on a SELECT of a text column based on a join.
- This spid gets an attention in the midst of performing these operations.
- The spid then processes sp_cursorclose on the previously mentioned cursor.
- Next, the spid opens a cursor on a SELECT that does not have to include any text/image columns but does require the creation of a worktable.
- Closes the cursor.
- The spid opens another cursor on a SELECT using a text column.
At this point the closetable errors are written into the errorlog:
1999/07/20 15:48:34.43 spid1 Launched startup procedure 'sp_sqlregister'
1999/07/20 15:49:03.31 spid32 closetable: table already closed for sdes 35faee50
1999/07/20 15:49:03.42 spid32 closetable: table already closed for sdes 35faee50
WORKAROUND
To work around the behavior, use these steps:
- Change the cursor type to dynamic or forward-only.
-or- - Run SQL Server with -T247.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbBug kbpending KB238336 |
---|
|