BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

small question about old good TADOConnection

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Vlad Gonchar
Guest





PostPosted: Thu May 06, 2004 2:59 pm    Post subject: small question about old good TADOConnection Reply with 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 !


Back to top
Ralf Jansen
Guest





PostPosted: Thu May 06, 2004 5:22 pm    Post subject: Re: small question about old good TADOConnection Reply with quote



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





PostPosted: Thu May 06, 2004 5:29 pm    Post subject: Re: small question about old good TADOConnection Reply with quote



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





PostPosted: Thu May 06, 2004 7:23 pm    Post subject: Re: small question about old good TADOConnection Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.