Article View: borland.public.cppbuilder.database.multi-tier
Article #493Re: Time to open TTable
From: Howard Lee Harkness
Date: Thu, 06 Sep 2001 18:21
Date: Thu, 06 Sep 2001 18:21
26 lines
2282 bytes
2282 bytes
Mark Cashman <mcashman@temporaldoorway.com> wrote: >Make sure you have CachedUpdates = true, and in the AfterPost event do >ApplyUpdates() and CommitUpdates(). This is a bit unclear. From the help files, I gather that ApplyUpdates() writes the cache out to somewhere, and CommitUpdates() is misnamed, and only clears the cache. So if I make some changes, call ApplyUpdates(), then CommitUpdates(), then makes some changes, repeat the ApplyUpdates() and CommitUpdates(), *then* call the Database->Commit(), will the first changes get commited to the database? Also, if I want to cancel the changes to just one TQuery resultset, do I need to call TQuery::Cancel(), TQuery::CommitUpdates(), or both, or something else? In the help files, the example shows to ApplyUpdates(), then call the database Commit(), then CommitUpdates(). Is that sequence actually required? TIA for you help. Spam Me and Get Sued <harkness@suespammers.org> see www.suespammers.org for details & free spam-nuking email account
Technical Details
Message-ID:
<8jffpt09i26c3scqddhb268jsf54bl6sgq@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<h2n65t43f0hk3svu8lp2v4j31nkk8bjjrs@4ax.com> <3A53B9CD.4D9FA179@freenet.co.uk> <mf395tcc6pjv22kom13vh70ms90ivnu7ti@4ax.com> <3A54A62B.28F98F65@freenet.co.uk> <e696ntomanipk4oi4surrjo1j81jsrkime@4ax.com> <3B73C59F.2A438336@temporaldoorway.com> <6p38nt4tc31scf3m8ufsl5pd0nuhv7lp2g@4ax.com> <3B7A5939.91D95B8B@temporaldoorway.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,f125cee301e69e65 X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-09-06 11:43:50 PST From: Howard Lee Harkness <harkness@suespammers.org> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Re: Time to open TTable Date: Thu, 06 Sep 2001 13:21:54 -0500 Organization: YGBSM! Message-ID: <8jffpt09i26c3scqddhb268jsf54bl6sgq@4ax.com> References: <h2n65t43f0hk3svu8lp2v4j31nkk8bjjrs@4ax.com> <3A53B9CD.4D9FA179@freenet.co.uk> <mf395tcc6pjv22kom13vh70ms90ivnu7ti@4ax.com> <3A54A62B.28F98F65@freenet.co.uk> <e696ntomanipk4oi4surrjo1j81jsrkime@4ax.com> <3B73C59F.2A438336@temporaldoorway.com> <6p38nt4tc31scf3m8ufsl5pd0nuhv7lp2g@4ax.com> <3B7A5939.91D95B8B@temporaldoorway.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.136.48.117 X-Trace: dnews 999800600 207.136.48.117 (6 Sep 2001 11:23:20 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews