PRB: RDO 2.0 CommitTrans/RollbackTrans Closes ResultsetLast reviewed: November 11, 1997Article ID: Q176564 |
The information in this article applies to:
SYMPTOMSIn Visual Basic 5.0, after executing the CommitTrans/RollbackTrans methods of the RDO connection object, the following error occurs if you try to move the cursor around (for example, rs.MoveNext), query the column value (for example, debug.print rs(0)), or refresh the cursor (for example, rs.Move 0):
Run-time error '40088': No open cursor or cursor closed. STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONBy default, the SQL Server ODBC driver will automatically close your cursor after a call to commit or rollback. This can be avoided (at your own risk) by setting a driver-specific statement option using the SQLSetConnectOption API. The option is documented in the SQL Server ODBC driver Help file, which you can also get when installing the SQL Server Books Online. Because of the problem noted above, SQLSetConnectionOption does not take effect. The following code example demonstrates how to work around the problem by using the Server-side cursor driver and the rdExecDirect option of the connection object. SQL Server and the Pubs sample database is used here.
Step-by-Step Example
Keywords : vb5all kberrmsg Technology : kbrdo Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |