🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by I�igo Mon, 19 Feb 2001 10:25
Problems for erasing an Access Database
#5801
Author: I�igo
Date: Mon, 19 Feb 2001 10:25
11 lines
1181 bytes
I have an application that creates a temporal access database. I'd like to erase the database from the application, 
but it seems to be locked, so I can't. At last, the temporal database must be erased when the application closes, but
I get the same error. 

I use BCBuilder 5, with ADOExpress. 

For erasing the file I use the instruction 
   DeleteFile(Path);

Thanks in advance
Re: Problems for erasing an Access Database
#5728
Author: Jerry Bloomfield (TeamB)
Date: Mon, 26 Feb 2001 05:48
15 lines
1530 bytes
On 19 Feb 2001 02:25:25 -0800, "I�igo" <icampos@integratel.es> wrote:

>For erasing the file I use the instruction 
>   DeleteFile(Path);

All connections to the MDB file must be closed before this can succeed.  I
am not positive about ADO,  but I know that ODBC can do some "caching" of
connections,  keeping the MDB file open for a short time longer than
expected as the ODBC driver is expecting more connections soon...

Jerry Bloomfield (TeamB)
-- 
http://www.teamb.com                                      JersWork@wwa.com
Please do *NOT* send private e-mail without prior permission (my anti-spam 
filters will probably just delete it anyway <g>)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads