extra copies of DB an issue ?

murray83

Games Collector
Local time
Today, 14:03
Joined
Mar 31, 2017
Messages
870
Have a slight issue, seems have multiplie copies of the same DB appearing, see attached.

Is this down to a dirty close down of the DB and can i just remove the excess and keep the one with out any numbers
 

Attachments

  • extra copies.png
    extra copies.png
    49.5 KB · Views: 122
That's usually a sign of corruption. Do you have compact on close turned on?
 
yes, is it meant to be or is that an issue, The DB is split in to BE and FE
 
Last edited:
When you start getting numbered copied of the DB, that is a sign that Access is trying to simultaneously close and preserve data. It is not an unerring sign of corruption, but the odds are quite high that it is responding to something so corrupt it cannot be saved. Therefore, Access makes a copy of what was there before saving and closing everything. Here is how that happens.

When you do a Compact & Repair, Access does exactly what we sometimes suggest needs to be done. It makes an empty database and then, one internal object at a time, copies that object. It does exactly the same thing as if you made a new, "virgin" database and then imported everything in the older database. This is why, immediately after a C&R, tables appear to be sorted in the order of their primary keys.

The problem reveals itself if one of the objects is corrupted such that it cannot be copied - or more specifically, completely copied - into the new database. This corruption, so far as we can tell, most often takes the form of internal pointers in an object that do not point to the object header of the next object or element in a sequence. I.e a broken link in a chain of linked objects; a broken linked list. This is not the only possible corruption, but it is the most likely. So normally a C&R makes the new DB, copies the elements, and deletes the old DB. But when an error occurs during the process, it RENAMES the old DB to preserve stuff. And THAT is where your numbered copies originate. The date on the oldest copy tells you when the corruption first occurred. The number of numbered copies tells you how often you have done a failing C&R.

I haven't seen one of these in a long time, but it used to be that if you did a C&R and it failed, you would find a new system-generated table that enumerated the objects for which failures occurred.
 
yeah correct
In that case, do what Doc suggested. Manually do a C&R and see if you get an error table. If the C&R goes without a hitch, try turning off Compact on Close and see if you continue to get the duplicate files.
 
Have a slight issue, seems have multiplie copies of the same DB appearing
I'm aware you confirmed this later in the thread, but are you really sure these files are all copies of the same database?
I don't think this is possible. Some of the files in the screenshot are so small, there can hardly be anything in them, while others are so big that there must be something in them.

"DatabaseN" is the default name of a new database created with Access. I rather think, some, most, or even all of the files you are seeing there are completely unrelated database files; many of them probably completely empty.

I suggest you open and check the contents of each of the files and then delete it if it contains nothing of value or is a duplicate without relevance.

For the future, I advise you never ever intentionally create an Access database application again without naming the file something other than "Database".
 

Users who are viewing this thread

Back
Top Bottom