PC Review


Reply
Thread Tools Rate Thread

db1.mdb file created when database compacts

 
 
=?Utf-8?B?QmlnVHJvdWJsZUluTGl0dGxlQ2hpbmE=?=
Guest
Posts: n/a
 
      30th Oct 2007
Hi,
I have my databases configured to run compact and repair on shutdown. On
occasion when the database does it compact and repair process, a db1.mdb is
created and left behind after the database has finished its compact and
repair process. The next time the database is accessed and closed another
..mdb files is created this time db2.mdb. The file is incremented everytime.
Can anyone tell me the cause of this?

Thanks,
David.
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      30th Oct 2007
On Tue, 30 Oct 2007 06:34:02 -0700, BigTroubleInLittleChina
<(E-Mail Removed)> wrote:

Compacting works by creating a dbX.mdb, and copying all objects in it.
If all worked, the original db is deleted and the new one renamed.
If that process did not work for whatever reason, the dbX file may be
left behind. Take it as a sign that your compact did not work as well
as you expected, e.g. because the user got impatient and powered down
the machine while the compact was still in progress.

-Tom.


>Hi,
>I have my databases configured to run compact and repair on shutdown. On
>occasion when the database does it compact and repair process, a db1.mdb is
>created and left behind after the database has finished its compact and
>repair process. The next time the database is accessed and closed another
>.mdb files is created this time db2.mdb. The file is incremented everytime.
>Can anyone tell me the cause of this?
>
>Thanks,
>David.

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      30th Oct 2007
On Tue, 30 Oct 2007 06:34:02 -0700, BigTroubleInLittleChina
<(E-Mail Removed)> wrote:

>Hi,
>I have my databases configured to run compact and repair on shutdown. On
>occasion when the database does it compact and repair process, a db1.mdb is
>created and left behind after the database has finished its compact and
>repair process. The next time the database is accessed and closed another
>.mdb files is created this time db2.mdb. The file is incremented everytime.
>Can anyone tell me the cause of this?
>
>Thanks,
>David.


Check your database to see if there is a new CompactErrors table. As Tom says,
the db1 (or db2 or whatever) is the intermediate stage of compaction - the
errors table might be in it instead of in your main table.

The other reason that the file might persist is that the user running the
compact might not have Delete permissions on the folder containing the
database.

John W. Vinson [MVP]
 
Reply With Quote
 
germaine.oliver@gmail.com
Guest
Posts: n/a
 
      31st Oct 2007
If the db1, db2 are fully functional files, and you're working on the
network, then it may not be an error or permissions issue. If you're
using Access 2003 SP3, I think that it is a "bug" in SP3. I started
having this happen when they updated the SP, and apparently, we can't
uninstall the SP....

I don't know a workaround from code, except: 1. Do it on the local
drive (doesn't seem to be an issue there). 2) Figure out which db was
just created (the compacted one), rename (or delete) the original
file, and then rename dbx to the original file name. Both of these
solutions require some fancy coding (an external db, etc), so I'm not
doing that yet. I'm waiting to see if MS acknowledges and/or fixes the
bug...





On Oct 30, 9:34 am, BigTroubleInLittleChina
<BigTroubleInLittleCh...@discussions.microsoft.com> wrote:
> Hi,
> I have my databases configured to run compact and repair on shutdown. On
> occasion when the database does it compact and repair process, adb1.mdb is
> created and left behind after the database has finished its compact and
> repair process. The next time the database is accessed and closed another
> .mdb files is created this timedb2.mdb. The file is incremented everytime.
> Can anyone tell me the cause of this?
>
> Thanks,
> David.



 
Reply With Quote
 
MacroCharlie
Guest
Posts: n/a
 
      10th Jun 2008
I agree. this just started with SP3 which my org just installed. Does
Micorosoft plan on fixing this?

"(E-Mail Removed)" wrote:

> If the db1, db2 are fully functional files, and you're working on the
> network, then it may not be an error or permissions issue. If you're
> using Access 2003 SP3, I think that it is a "bug" in SP3. I started
> having this happen when they updated the SP, and apparently, we can't
> uninstall the SP....
>
> I don't know a workaround from code, except: 1. Do it on the local
> drive (doesn't seem to be an issue there). 2) Figure out which db was
> just created (the compacted one), rename (or delete) the original
> file, and then rename dbx to the original file name. Both of these
> solutions require some fancy coding (an external db, etc), so I'm not
> doing that yet. I'm waiting to see if MS acknowledges and/or fixes the
> bug...
>
>
>
>
>
> On Oct 30, 9:34 am, BigTroubleInLittleChina
> <BigTroubleInLittleCh...@discussions.microsoft.com> wrote:
> > Hi,
> > I have my databases configured to run compact and repair on shutdown. On
> > occasion when the database does it compact and repair process, adb1.mdb is
> > created and left behind after the database has finished its compact and
> > repair process. The next time the database is accessed and closed another
> > .mdb files is created this timedb2.mdb. The file is incremented everytime.
> > Can anyone tell me the cause of this?
> >
> > Thanks,
> > David.

>
>
>

 
Reply With Quote
 
Bibi
Guest
Posts: n/a
 
      12th Jun 2008
We were having this same problem, and worked out that it was due to the fact
that a number of our databases are 'read-only' files. This means that when
Access attempts to replace the original with the compacted file it finds this
action forbidden and simply has to leave the dbx file instead. On the other
hand it is very useful for data security that the databases cannot be
accidentally replaced or deleted. So our solution is to leave them
'read-only' except while we are performing a compact and repair operation


"BigTroubleInLittleChina" wrote:

> Hi,
> I have my databases configured to run compact and repair on shutdown. On
> occasion when the database does it compact and repair process, a db1.mdb is
> created and left behind after the database has finished its compact and
> repair process. The next time the database is accessed and closed another
> .mdb files is created this time db2.mdb. The file is incremented everytime.
> Can anyone tell me the cause of this?
>
> Thanks,
> David.

 
Reply With Quote
 
 
 
Reply

« ;) | Question »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CCleaner 2.26 (now compacts Firefox database) V_R General Software 1 26th Nov 2009 10:09 PM
Can an Access created database file be ran without a person having Big-dog1965 Microsoft Access 10 25th Sep 2008 06:13 PM
URGENT - How do I save a database file I created? Len Microsoft Access Getting Started 3 25th Feb 2008 09:32 PM
new database file (mdb) created when an existing database is open =?Utf-8?B?c2FsbW9zYWxhcg==?= Microsoft Access 1 5th Oct 2007 01:52 PM
What program created a file so that I can open the file/database? =?Utf-8?B?U3RhY3kgUy4=?= Microsoft Access Getting Started 2 18th Apr 2006 08:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 AM.