| View previous topic :: View next topic |
| Author |
Message |
Vlad Gonchar Guest
|
Posted: Thu May 06, 2004 2:59 pm Post subject: small question about old good TADOConnection |
|
|
Just to clarify the things...
Let's assume I want to access a DB from several threads.
Should I create separate TAdoConnetion in each the thread ?
Or it is enough to create one connection in main thread and synchronize
using it
in TAdoQueries when working in other threads ?
Yes! We still work in Delphi 5 !
|
|
| Back to top |
|
 |
Ralf Jansen Guest
|
Posted: Thu May 06, 2004 5:22 pm Post subject: Re: small question about old good TADOConnection |
|
|
Vlad Gonchar schrieb:
| Quote: | Just to clarify the things...
Let's assume I want to access a DB from several threads.
Should I create separate TAdoConnetion in each the thread ?
Or it is enough to create one connection in main thread and synchronize
using it
in TAdoQueries when working in other threads ?
Yes! We still work in Delphi 5 !
|
I would use one AdoConnection per Thread.
Easier to handle and ADO allready pools your connections in the
background so there is no gain in just having one TAdoconnection.
|
|
| Back to top |
|
 |
Del Murray Guest
|
Posted: Thu May 06, 2004 5:29 pm Post subject: Re: small question about old good TADOConnection |
|
|
What's the matter with Delphi 5 ... I still use it and cant think of any
reason at all to part with more money ...:-)
|
|
| Back to top |
|
 |
Vlad Gonchar Guest
|
Posted: Thu May 06, 2004 7:23 pm Post subject: Re: small question about old good TADOConnection |
|
|
| Quote: | Easier to handle and ADO allready pools your connections in the
background ...
|
Is the pooling done per a thread ? Or it pools connection for allthreads ?
|
|
| Back to top |
|
 |
|