Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiuser and SQL select issue..
#5
Soren,

In answer to your basic question, ADO is NOT thread safe. It works great if you keep the ADO pieces within each session, or you can pool it. I've played with pooled connections but haven't used them myself.

Put your ADO components on session forms or, for persistence during a session, on a datamodule that you then put on UserSession datamodule.

Regardless of where you put the ADO components, you should set the ComInitialization property of ServerController to ciMultiThreaded. This setting is needed if you use any COM component, not just ADO.

Dan
Reply


Messages In This Thread
Multiuser and SQL select issue.. - by SorenJensen - 02-05-2020, 03:32 PM
RE: Multiuser and SQL select issue.. - by kudzu - 02-05-2020, 04:37 PM
RE: Multiuser and SQL select issue.. - by zsleo - 02-05-2020, 05:51 PM
RE: Multiuser and SQL select issue.. - by DanBarclay - 02-06-2020, 02:35 AM
RE: Multiuser and SQL select issue.. - by zsleo - 02-07-2020, 03:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)