🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1477

Re: Multi connection to database

#1477
From: J�r�me Piquot
Date: Wed, 22 Sep 1999 00:00
61 lines
2558 bytes
dont create TDatabase for each thread then, create the connection in main
thread and share it for child threads.

--

-----------------------------------------------------------------
PIQUOT J�r�me
A. WOLFF SA
6, rue de la Gare
67120 ERNOLSHEIM/BRUCHE
FRANCE
e-mail: wolff@media-net.fr
http://www.media-net.fr/wolff
-----------------------------------------------------------------
fang <fang@singstar.com.sg> a �crit dans le message :
7s9iki$bvs2@forums.borland.com...
> I can make the database connections work now. But other problems arrise:
>
> The program act as a server to listen connection from remote senders. For
> each seperate connection, at start time, the program create a new thread
> which then creates a new database and asession, then update database
> according to the received data. Then disconnect from the database and
> destory the session.
>
> The problem is, the program can not responsible in time because create and
> connect database and session is quite slow.
>
> Fang
>
>
>
> J�r�me Piquot <wolff@media-net.fr> wrote in message
> news:7s7u54$rkr4@forums.borland.com...
> > what do you mean by do not work? do you have an error message?
> >
> > --
> >
> > -----------------------------------------------------------------
> > PIQUOT J�r�me
> > A. WOLFF SA
> > 6, rue de la Gare
> > 67120 ERNOLSHEIM/BRUCHE
> > FRANCE
> > e-mail: wolff@media-net.fr
> > http://www.media-net.fr/wolff
> > -----------------------------------------------------------------
> > fang <fang@singstar.com.sg> a �crit dans le message :
> > 7s7kt8$nru8@forums.borland.com...
> > > I met problems when I dynamiliclly create TSessions and TDatabase to
> query
> > > one database. The first database works well,
> > > but when set Connected = true for second database, it does not work.
So
> > what
> > > should I do?
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <7sa33k$btg15@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7s7kt8$nru8@forums.borland.com> <7s7u54$rkr4@forums.borland.com> <7s9iki$bvs2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fcd2b,7e65d34ec67ed6ce
X-Google-Attributes: gidfcd2b,public
From: "J�r�me Piquot" <wolff@media-net.fr>
Subject: Re: Multi connection to database
Date: 1999/09/22
Message-ID: <7sa33k$btg15@forums.borland.com>
X-Deja-AN: 528152447
References: <7s7kt8$nru8@forums.borland.com> <7s7u54$rkr4@forums.borland.com> <7s9iki$bvs2@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: WOLFF SA
X-MSMail-Priority: Normal
Reply-To: "J�r�me Piquot" <wolff@media-net.fr>
Newsgroups: borland.public.cppbuilder.database.multi-tier