RDS Custom DataFactory in IE4

RDS Custom DataFactory in IE4

Sometimes it’s necessary to create your own RDS server object because of some inherent limitations of the built-in RDSServer.DataFactory object. If you find it necessary to build your own version of the DataFactory, you need to keep in mind the following key items:

  • You must manually add the name of your custom business object to the registry of the server. This indicates that the object is safe for initialization over http and is in addition to standard object registration.
  • Input parameters to methods of the object should be passed as ByVal instead of ByRef.
  • The recordset should be returned as the lightweight ADOR recordset type instead of the heavier (but more full featured) ADODB type recordset. The lighter ADOR type recordset can be passed back to the client more quickly because it is smaller than the ADODB type recordset.
  • The CursorLocation property of the recordset should be set to adUseClientBatch. This allows the recordset to be disconnected from the ADO connection.
See also  Comparing different methods of testing your Infrastructure-as-Code

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist