How To Extract Multiple RDO Resultsets from Stored Procedures (154825)
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 Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154825 SUMMARY SQL Server stored procedures are capable of returning more
than one recordset and the Remote Data Object (RDO) has the ability to access
these Multiple Resultsets. When calling these stored procedures, the
following error can be encountered: Error 40002
"37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open a
cursor on a stored procedure that has anything other than a single select
statement in it" The following code sample showing how to return the
multiple Resultsets using the MoreResults Property of the RDO. REFERENCES For more information, please see the following articles in
the Microsoft Knowledge Base: 147875
How To Use "DSN-Less" ODBC Connections with RDO and DAO
147814
How To Retrieve Multiple Result Sets from a Stored Procedure
149054
INFO: Choosing a rdoResultset Cursortype
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto kbRDO KB154825 |
---|
|