Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: NT
Expertise: Beginner
Aug 3, 1999

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date