PRB: RDS Does Not Work with OLE DB Simple Provider

ID: Q184399


The information in this article applies to:


SYMPTOMS

When using the Remote Data Service (RDS) for ActiveX Data Objects (ADO) with an OLE DB provider that was built using the OLE DB Simple Provider (OSP) Toolkit, the following error may occur:

0x80004005 (Unspecified error)

The error occurs when you use the RDSServer.DataFactory Query method or when you return the disconnected recordset from a business object.


CAUSE

An OLE DB provider built with the OLE DB Simple Provider (OSP) Toolkit can only return rowsets containing VARIANT type data. RDS cannot remotely marshall VARIANT type data.


RESOLUTION

Here are two workarounds:




STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Install Microsoft Data Access Components (MDAC) and the OLE DB 1.5 SDK.


  2. Build the Visual C++ OSP sample that comes with the OSP Toolkit.


  3. Use Internet Explorer to invoke the following RDS test page:
    
    
           http://your_machine/MSADC/Samples/adctest.asp 


  4. Change the fields on the page to the following:


  5. 
    
          ADC Server:          http://your_machine
    
          Connection:          "provider=SampleOSP_VC; data source=ospsampc"
    
          Query:               <Type in the path to the Customer.txt file that
                                comes with the VC++ OSP sample>
    
          Recordset Status:    Complete
    
          Execute Option:      Synchronous
     
  6. Click the Run button.

    RESULTS: The error 0x80004005 (Unspecified error) occurs.




REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

Q183294 INFO: Techniques for Returning a Recordset via RDS
Q183315 HOWTO: Write and Validate a Custom Business Object with RDS
Q183609 FILE: Rdsvb.exe Demonstrates How to Use RDS with Visual Basic

Additional query words: kbrds150bug kbrds200bug kbdse


Keywords          : kbRDS 
Version           : WINDOWS:1.0,1.5
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: February 12, 1999