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
    2019-12-13T00:56:28+00:00

    Gina Whipp:  I've been advocating for individual front-ends for years and only some of my clients have the back-end set to compact on close.  I was speculating whether it may have been one or the other of those issues.  I need to go through my list of people who have had problems to see if there is a commonality between the ones who have not had issues and those who have and the first place I'm going to look is at the back-end.  I have fifty-some different clients so it's going to take a while to spot check.

    Yes, individual front-ends ensure that when one user goes down they don't all go down.  Until Microsoft introduced this bug, that is.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-12-12T23:48:42+00:00

    SFBAZ,

    The ONLY way when having multiple Users is for them to each have their own Frontend.  A link to a single Frontend is just asking for corruption.

    I would NEVER set the Backend to close whether one User or multiple.  However, having it do so with multiple Users is again, just asking for corruption.  That said, if your Backend grows to a point of needing compacting constantly there is most likely another issue that is causing such bloat and that is what you should be looking at.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-12-12T22:23:25+00:00

    Has anyone considered the effects of having users work from their own copies of the front-end database vs. a shortcut to a single copy of the front-end database on the server?  I have always recommended that users each have their own copies of the front-end but now I'm wondering if some of the problems could be related to that and maybe I should have them go back to a shortcut.  

    Also, could there be an issue with having the back-end set to compact on close with multi-users?  I'm grasping at straws here...

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-11-29T20:42:51+00:00

    Shane,

    Thanks for updating the post. Can you please consider this alternative approach which is based on the disable leasing workaround, but limiting it to one share instead of the entire server? 

    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)

    If this approach does essentially the same thing to disable leasing for the database files on that share, it will isolate the change to that share. Thus no bad side effects for other functions on the server. Server administrators will be much more likely to implement the change.

    Has anyone else tried this or have any feedback? I have posted it here before and suggested it to some of my customers, but I also made the client change I mentioned earlier, so I cannot say conclusively if this will have the same results as the suggested workaround by Microsoft. I wanted to mention this in case it will help those who can't disable leasing on the entire server.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2019-11-29T19:20:35+00:00

    @DLyons2,

    The issue you are seeing with update queries is a new problem, introduced with the November 12 Office update, and is unrelated to the ongoing issue being discussed in this thread.

    Fortunately a fix is available for this issue in most versions of Office (and it will be soon for the remaining versions).

    See this link for details: https://support.office.com/en-us/article/access-error-query-is-corrupt-fad205a5-9fd4-49f1-be83-f21636caedec

    Shane

    Was this answer helpful?

    0 comments No comments