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.
- Create a folder on the server and place the uncorrupted database in that folder.
- Share the folder on the server and give it a share name (e.g., MyDB)
- Start Powershell as Admin on the server.
- 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)
- Restart the server or do NET STOP SERVER then NET START SERVER.
- 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.