BUG: Server Not Responding to dbcancel()Last reviewed: April 29, 1997Article ID: Q114528 |
The information in this article applies to:
SYMPTOMSAfter a DB-Library (DB-Lib) call returns FAIL due to DB-Library error 10024,
SQL Server connection timed outsubsequent calls to dbcancel() return FAIL and result in multiple 10024 errors. The current command batch is not canceled and calls to dbsqlexec() will fail with error 10038:
Attempt to Initiate a New SQL Server operation with results pending. CAUSEWhen a query times out due to certain locking conditions, SQL Server may be unable to respond to the attention signal sent by dbcancel(). When the locks that caused the original query to timeout are freed, dbcancel() can be executed successfully, and subsequent calls to dbsqlexec() will not generate 10038 errors.
WORKAROUNDShould dbcancel() return FAIL due to a 10024 error, it is necessary to either wait for the locking condition on the SQL Server to clear, or to close the current DBPROCESS and open another.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: dblib
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |