Article View: borland.public.cppbuilder.database.ado
Article #2775Re: Additional information to close a TTable DB connection?
From: Ivo Karindi
Date: Thu, 03 Apr 2003 07:44
Date: Thu, 03 Apr 2003 07:44
26 lines
1991 bytes
1991 bytes
Solved it myself. Appears that the default DB connection that is automatically created when using TTable or TQuery has always session's "keepconnections" property set to true. Had to bypass the default session... Ivo > Using TTable, what are the different options to close a connection to MS > Access? I have tried TTable->Close() and TTable->Free() in addition to > closing the associated form which should all perform pretty much the same > thing, but for some reason something still remains hanging. This happens > both in BCB 4 and 5 with Win2k. > > The story is that I'm opening the database connection from a DLL function > call, but after the function has been run and everything should be quiet > again, the database connection still remains open. What additional options > can I try to close down the database connection? What else is there that > can be closed? > > TIA, > > Ivo Karindi > >
Technical Details
Message-ID:
<3e8be66c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3e8a81cf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,2895b3e7fba0e15f X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-02 23:51:52 PST Reply-To: "Ivo Karindi" <solk@ieslc.com> From: "Ivo Karindi" <solk@ieslc.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3e8a81cf$1@newsgroups.borland.com> Subject: Re: Additional information to close a TTable DB connection? Date: Thu, 3 Apr 2003 10:44:43 +0300 Lines: 28 Organization: IESLC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.35.136.182 Message-ID: <3e8be66c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049355884 213.35.136.182 (2 Apr 2003 23:44:44 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail