devxlogo

Using ADO-Connected Recordsets with MTS

Using ADO-Connected Recordsets with MTS

Question:
Can I use ADO-connected recordsets with MTS? From the information I can find it seems that MTS does not handle them.

Answer:
You can, but the question is, do you really want to?

Using a connected (rather than disconnected) recordset means that you must maintain a stateful connection to the MTS object, which must then maintain one or more connections to the database. While this eases some programming tasks on the UI, it creates huge scalability problems, even for a relatively small number of users. It is much better to use stateless components in MTS, which grab the information from the database, passes it on to the client, disconnects from the database, and tells MTS it can destroy the component.

Any persistence you need can be created on the client, either within local memory structures (including those hidden in Windows controls, such as listboxes and comboboxes) or with local files.

See also  How IoT Tech Will Transform Logistics
devxblackblue

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