Results 1 to 9 of 9
  1. #1
    Stevef8 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    4

    Compact & Repair: "Database Already Exists"

    Recently attempted to perform a manual C&R on several databases. In each instance, I get a dialog stating that the "Database Already Exists".



    I've done some research & know that during the C&R process, a temporary DB is made, the original DB is compacted into the temp DB, the original DB is deleted & the temp DB is renamed. It would appear that somehow the temp DB file is already present & so cannot be created.

    I'm perfectly happy to delete any of the temp DB's that happen to exist before starting another C&R. The question is: where are they, and what are they named?

    Thanks,
    Steve

  2. #2
    Ajax is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    8,255
    they will be in the same folder as the db you are compacting. It might have something to do with your db name or path or disk capacity, or it might be your db is corrupted. Suggest copy file to another folder and C&R from there and see if that solves the problem

  3. #3
    Stevef8 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    4
    Copying to another folder did the job. I'd still like to find & delete that temp DB in the original folder. Any idea what the name would be? Any special attributes that might hide it from view?

    Thanks,
    Steve

  4. #4
    Ajax is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    8,255
    not sure - think it is the same name as the db plus something like 'backup'

    suggest order your files in date order and look at the ones for the date in question.

    Can also try a reboot

  5. #5
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    4,148
    The temp database created during a C&R is called database.mdb (even if the file being compacted is an ACCDB file) and is in the same folder
    Colin (Mendip Data Systems) : Website, email
    If this has helped, please click the star button and leave a comment

  6. #6
    Stevef8 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    4
    Interesting -- the file database.mdb is not listed in the folder, yet the error still occurs:
    Click image for larger version. 

Name:	Screenshot.jpg 
Views:	13 
Size:	205.5 KB 
ID:	42063
    Any attributes that need to be cleared for it to show up?

    Thanks
    Steve

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    14,904
    My suspicion/guess is that that file is deleted once the C&R is completed successfully.

  8. #8
    Stevef8 is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    4
    Quote Originally Posted by orange View Post
    My suspicion/guess is that that file is deleted once the C&R is completed successfully.
    Yes, I would agree. However, I would also expect future C&R tasks to successfully complete if: this is in fact the name of the temporary file, and it has actually been deleted. This does not happen unless the files are moved to a different folder and the C&R is done there.

    Thanks,
    Steve

  9. #9
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    4,148
    To be precise, the database.mdb file is created as a compacted version of the original, the original is then deleted and database.mdb renamed as the original filename.
    If you have a very large app you may have sufficient time to see this happening in Explorer.

    @Stevef8
    Suggest you close all running instances of Access in Task Manager then delete any orphaned .ldb or .laccdb files remaining
    Colin (Mendip Data Systems) : Website, email
    If this has helped, please click the star button and leave a comment

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 08-08-2019, 11:05 AM
  2. Replies: 4
    Last Post: 07-17-2015, 09:11 PM
  3. Replies: 5
    Last Post: 09-01-2014, 12:11 PM
  4. Replies: 2
    Last Post: 12-04-2012, 01:03 AM
  5. Compact and Repair Database "Bombs"
    By GraeagleBill in forum Access
    Replies: 16
    Last Post: 09-27-2011, 09:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums