PRB: RDO: Hstmt Error with Asynchronous SQL Server Queries (143032)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
This article was previously published under Q143032 SYMPTOMS
Trying to simultaneously execute a second query on the same rdoConnection
that currently has an asynchronous query executing will cause the following
error:
S1000: [Microsoft][ODBC SQL Server Driver]Connection is busy with
results for another hstmt
CAUSE
After you execute an asynchronous query you cannot access the recordset or
execute another asynchronous query on the same rdoConnection until the
StillExecuting property of the recordset is False. This behavior is by
design.
RESOLUTION
You need to allow for the asynchronous query to finish before executing
another query on the same rdoConnection or accessing the recordset object.
You can check to see if the query is finished by checking the
StillExecuting property of the recordset. This can also be resolved by
opening a separate rdoConnection for each query you want to execute
simultaneously.
REFERENCES
Hitchhiker's Guide to Visual Basic and SQL Server, Microsoft Press.
ISBN: 1-55615-906-4
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbprb KB143032 |
---|
|