How To Use GetRows to Pass Recordset Data Back from OLE Server (143034)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q143034 SUMMARY
When implementing an OLE server to process your data requests for an OLE
client, you can use the GetRows method to send the data back to the client
from the server. This article demonstrates this using RDO; the term
Resultset is used instead of Recordset, but you could easily modify the
code to use the DAO Recordset object.
The sample application will let you build an OLE client that retrieves the
rows from an rdoResultset in three different ways:
- The first way will use traditional RDO controlled completely on the
client side with no OLE interaction to populate the grid. This is done
for a performance comparison only.
- The second will allow the rdoResultset to be created by the OLE server
but will receive a pointer to the rdoResultset object, which it will
reference to populate the grid. This method is very slow and only works
reliably for an in process OLE server.
- The third way will allow the rdoResultset to be created remotely and
receive an array with the GetRows method that contains the row data to
populate the grid. This is the recommended way to implement three tier
client server architecture.
Modification Type: | Major | Last Reviewed: | 11/3/2003 |
---|
Keywords: | kbDatabase KB143034 |
---|
|