PRB: Returning Multiple Resultsets Fails Under ADO with Microsoft Oracle OLEDB Provider and ODBC Driver (306787)



The information in this article applies to:

  • Microsoft OLE DB Provider for Oracle 2.0
  • Microsoft OLE DB Provider for Oracle 2.1
  • Microsoft OLE DB Provider for Oracle 2.5
  • Microsoft OLE DB Provider for Oracle 2.6
  • Microsoft OLE DB Provider for Oracle 2.7
  • Microsoft ODBC for Oracle (Build 2.573.2927) 2.5

This article was previously published under Q306787

SYMPTOMS

When using ActiveX Data Objects (ADO), it is not possible to return two resultsets from a single Oracle package/procedure. If you attempt to return two resultsets, the following error occurs:
"The operation requested by the application is not supported by the Provider"

CAUSE

The Microsoft ODBC driver for Oracle does have this capability, but only for the special feature of returning resultsets from packages/procedures. The driver itself does not support returning multiple results on a single statement. When the Microsoft OLEDB Provider for ODBC attempts to determine if the ODBC driver supports multiple resultsets, it returns FALSE. Because the OLEDB Provider for Oracle does not support the IMultipleResults interface either, that call fails with the above error message.

RESOLUTION

There is no workaround for this problem. When using ADO, you are limited to one resultset returned per Oracle package/stored procedure.

STATUS

This behavior is by design.

REFERENCES

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

174679 HOWTO: Retrieve Resultsets from Oracle Stored Procedures

239771 HOWTO: Return a Resultset from Oracle Stored Procedures into an ADO Recordset

229919 HOWTO: Retrieve a Recordset from an Oracle Stored Procedure Using ADO on ASP


Modification Type:MajorLast Reviewed:9/22/2003
Keywords:kbDatabase kbDriver kbOracle kbprb kbProvider KB306787 kbAudDeveloper