Access Database is getting corrupt again and again

Anonymous
2018-06-01T17:47:41+00:00

We have an application which was working okay till last month. But after the last windows update our clients are getting issues with access database. access database got corrupted.  We ran compact and repair. But it still getting corrupted again and again.  This issue started right after the window update. clients are on different OS. Like server 2018, server 2012 and windows 10.

Is there anything i have check in new windows update or any other step to prevent database corruption?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

604 answers

Sort by: Newest
  1. Anonymous
    2020-01-27T20:44:10+00:00

    I created a subfolder below where my backend database used to exist then moved it there (on the same server). Once moved, I relinked the FE to the back end tables' new location and set the "Compact/Repair on Close" option. I cannot say if the folder move, relinking the back end tables and/or the Compact/Repair on Close is what fixed it, but it is fixed. Over 3 weeks later, no data corruption errors - Knock on wood. Sometimes the simpler solutions are the ones you try last.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2020-01-27T20:28:00+00:00

    Any ideas on what made the difference? Was the database moved to a different server or just a different share on the same server?

    My prior post probably got lost or overlooked.

    I moved my Access backend database to a different network folder then relinked the backend tables to the FE db. I have the Compact/Repair on Close option set. We have about 25 - 50 people accessing this database daily. Since I did this change over 3 weeks ago, there have been no more data corruption issues.

    I tried to get IT Support to install the Disable Leasing fix on the Host server, but they haven't been responsive. So I came up with this above last ditch option when our database was corrupting multiple times daily, and I had to do something !

    I would at least give this option a try if your IT Support group is as unresponsive as mine or the Disable Leasing fix isn't working. It was a lifesaver for me.

    George 

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2020-01-27T20:27:50+00:00

    Note - Users have their own compiled FE database which is copied to their local drive (C:) when a new db version is released. I don't have users create shortcuts to the network compiled/uncompiled FE db.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-01-27T20:16:24+00:00

    My prior post probably got lost or overlooked.

    I moved my Access backend database to a different network folder then relinked the backend tables to the FE db. I have the Compact/Repair on Close option set. We have about 25 - 50 people accessing this database daily. Since I did this change over 3 weeks ago, there have been no more data corruption issues.

    I tried to get IT Support to install the Disable Leasing fix on the Host server, but they haven't been responsive. So I came up with this above last ditch option when our database was corrupting multiple times daily, and I had to do something !

    I would at least give this option a try if your IT Support group is as unresponsive as mine or the Disable Leasing fix isn't working. It was a lifesaver for me.

    George

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2020-01-27T15:38:58+00:00

    Here is what I posted two months in a reply to Shane Groff from Microsoft on this forum on this topic. I did not get a reply. I also posted this once or twice previously to everyone and got no replies from anyone who might have tried it. Pretty simple and worth a try.

    1. Create a folder on the server and place the uncorrupted database in that folder.
    2. Share the folder on the server and give it a share name (e.g., MyDB)
    3. Start Powershell as Admin on the server.
    4. Set the leasing mode for the new share to None with the following commands:

        set-smbshare MyDB -LeasingMode None

        get-smbshare MyDB | Format-List -Property *    (make sure Leasing Mode is set to None)

    1. Restart the server or do NET STOP SERVER then NET START SERVER.
    2. Make sure ALL the client PCs open the database file or point to it in a front-end database using the UNC path for the new share name. If they don't use the right share name, disable leasing will still be on.

    Note: To turn leasing back on if needed (in case of problems):

        set-smbshare MyDB -LeasingMode Full     (then restart the server or do NET STOP SERVER then NET START SERVER)

    To repeat, THIS NEEDS TO BE FIXED BY MICROSOFT. None of the workarounds, including this one and the client based one, are acceptable as a permanent condition of using Microsoft Access on a network. Just unacceptable. IT IS GOING ON TWO YEARS!!! This is a flaw in the Microsoft Networking SMB protocol that needs to be resolved.

    Was this answer helpful?

    0 comments No comments