🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3948

Re: Synchronising ADOConnections

#3948
From: Vassiliev V.V.
Date: Sat, 25 May 2002 06:45
30 lines
2143 bytes
Be sure you are not on client-side cursor - on client cursor all rows are
cached. Check that cursor type is adOpenDynamic or adOpenKeyset.

Regards,
Vassiliev V.V.
http://www.oledbdirect.com

"Thomas Wagener" <Thomas.Wagener@web.de> �������/�������� � ��������
���������: news:3cedf0d8$1_1@dnews...
> Hi,
>
> I have a problem concerning the sychronisation of ADOConnections in
> different threads. When I call a delete statement (via a TADOCommand) on a
> table, a query in a different thread is still giving back the deleted
record
> set. The application works on a user database. When I delete a user in one
> thread the username is still displayed in the other, although I obtain the
> user list definitely after the first command was executed.
> Each thread holds a TADOConnection that is only closed but not destroyed
> between the queries on the database. I suspect that the caches of the
> connections are not updated properly. Is there a magic parameter for
> TADOConnection that might remedy this problem, do I have to destroy the
> connection after each query, or am I completely on the wrong track? I am
> using CBuilder 5.
>
> Any suggestions,
>
> Thomas
>
>
Technical Details
Message-ID: <3cf0ba77_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!213.73.101.75!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3cedf0d8$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,588b209f7c6a4a7e
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-05-26 03:38:50 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3cedf0d8$1_1@dnews>
Subject: Re: Synchronising ADOConnections
Date: Sat, 25 May 2002 10:45:31 +0400
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.118.128.153
Message-ID: <3cf0ba77_2@dnews>
X-Trace: dnews 1022409335 62.118.128.153 (26 May 2002 03:35:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!213.73.101.75!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews