The information in this article applies to:
SYMPTOMSSQL Server does not notify an application when a nondeadlocking lock collision occurs with another application. Since the other application could hold the lock for a long time, there should be some way for an interactive application to regain control and do something else. The same is also true for queries that take a long time to process. WORKAROUND
Rather than sending the command via dbsqlexec(), use dbsqlsend().
Then use dbdataready() repeatedly to determine when results have
begun to arrive. If too much time has elapsed, issue dbcancel() to
abort the current command. If results have arrived, issue
dbsqlok() and if the command was successful, enter the normal
dbresults()\dbnextrow() loop.
Additional query words: Optimization and tuning Windows NT dblib
Keywords : kbprg SSrvDB_Lib SSrvServer SSrvWinNT |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |