ActiveX methods return row results using the IJagServerResults interface. Both a custom (native C++) and IDispatch version of the interface are available, as documented in these chapters of the the EAServer API Reference:
To use these methods in your component, you must first register the jagaxwrap.dll programmable object on your machine. If you are developing on a machine that has EAServer installed on it, jagaxwrap.dll is already registered.
The following sections describe the two methods for returning result sets:
“Forwarding a result set with ResultsPassthrough” describes how to forward an ODBC or Client-Library result set to the client. Use this method when you want to send query results as-is.
“Sending results row-by-row” describes the sequence of calls to define a result set’s columns and send the result set row-by-row. Use this method when you must manufacture a result set from scratch. You can also use this method to filter rows or columns from the results of a remote-database query.
You cannot send a result set unless the IDL definition of the component method returns TabularResults::ResultSet or TabularResults::ResultSets.
Copyright © 2005. Sybase Inc. All rights reserved. |