Article View: borland.public.cppbuilder.database.ado
Article #1779MS-Access .LDB file not deleted
From: Alain Bourgeois
Date: Sun, 29 Feb 2004 14:14
Date: Sun, 29 Feb 2004 14:14
34 lines
1946 bytes
1946 bytes
Dear all,
I have a c++ builder 6 (v enterprise) application, using ADO to access a
MS-Access 2000 database.
The application works correctly (read, updates, ...), the problem I have
is that I have to close the mdb file to open another one with the same
TADOConnection ... and it doesn't work!
I close all open TADOQuery's, the TADOConnection is named ADODict:
// after closing queries
if (ADODict->InTransaction)
ADODict->CommitTrans();
for (int i = 0; i < ADODict->DataSetCount; i++)
if (ADODict->DataSets[i]->Active)
ShowMessage(ADODict->DataSets[i]->Name);
// no active datasets were found
ADODict->Close();
// LDB file is still there, adodict is still connected!!!!!
If I close the program the .LDB file is deleted (so I can't change
connection parms!). So If I want to disconnect there is something more
to do than ADODict->Close() to do, but what?????
Any help welcome,
Alain Bourgeois
bk332951@skynet.be (pls put this e-mail in cc of your reply)
www.self-mail.com
Technical Details
Message-ID:
<4041F3C9.A33774C2@skynet.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!louie!tjb!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,dddb74a3eee094fe,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-02-29 06:14:32 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!louie!tjb!not-for-mail Message-ID: <4041F3C9.A33774C2@skynet.be> Date: Sun, 29 Feb 2004 15:14:33 +0100 From: Alain Bourgeois <bk332951@skynet.be> X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: MS-Access .LDB file not deleted Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 37 Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 81.241.105.22 X-Trace: DXC=`[i^eFMK7afJ]8C?H02?Sgi98m_9@L0lg1XhdhRZ;<4ghEDHYa0f3MhbG]=UZ@K2Qa8Bn;UK2[FOoaLH2beNhU:l X-Complaints-To: usenet-abuse@skynet.be