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: Most helpful
  1. 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
  2. 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
  3. Anonymous
    2020-01-27T14:00:55+00:00

    Thanks for the reply. Please if possible share the change

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-01-27T13:35:18+00:00

    NAS devices are no magic pill, and not all created equal either.

    I been called into companies where performance was dismal and the solution was to move it off of their NAS and suddenly everything was fine.

    That said, I also do have clients running their database on a NAS  without issue.

    The real solution here is to not use Windows 10 since it is it that is there for cause of this issue.

    I also urge all of you to post on access.uservoice.com and through the feedback command with Access itself.  People need to make noise if they ever want this fixed.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2020-01-27T13:34:27+00:00

    Thank you! I too have been puzzled. What I suggested would disable leasing on one share limiting any performance or other impact dramatically and make it more palatable to customers and server administrators. I don’t have control of my clients servers so I can’t tell you for sure that it will work, but it should from what I understand. I made the client registry change part of our setup and that seems to be working. Some customers made the global disable leasing change on the server and reported that it worked. I suggested the change to just  one share to a few, but I do not have definitive evidence that they made the change and that it fixed the problem.

    It seems like this would be a huge step forward if this approach works, at least as an interim step. The root cause still needs to be found and fixed by Microsoft. I hope they do not give up on this. I tried recreating it with a simple database doing repetitive queries, but was unable to. If anyone can do this and give it to Microsoft to help finally resolve this issue, they would be a hero and many of us would be very grateful. I do not like making the client change as I do not know the full performance impact of that change.

    I can repost the share-specific change when I get to my office if that helps.

    Was this answer helpful?

    0 comments No comments