Force all users to disconnect from 2010 Access backend database

Users put “locks” into an LDB. An LDB is a kind of database of locks for MS Access.

Users also put “locks” onto LDB’s and MDB’s. These locks are part of the native database primitives provided by Windows and Windows networking.

If there are no locks IN the ldb, the user is not writing into the MDB.

If there are no locks ON the mdb, the user is not using that Windows/Networking service.

To get exclusive locking on an MDB, you need both. MSAccess won’t let you exclusive lock while the LDB has entries showing someone else is using the database, and Windows won’t give you an exclusive lock while it has locks showing someone else is using the database.

To 100% bulletproof empty the LDB, you delete the LDB. That is why Access always attempts to delete the LDB on close. If Access crashes, or the network is disconnected, or the PC or Server is turned off, the LDB will have data (“locks”) that have not been deleted. You get rid of them by deleting the LDB.

Access won’t be able to delete the LDB if a user still has Windows/Network locks on the LDB. Since Access is ignoring existing “lock” entries to clear broken “lock” entries, this is how Access/Windows prevents Access deleting the LDB while another user is still using it.

If EITHER the Windows locks or the Access/LDB “locks” exist, you can’t get exclusive ownership. If ONLY the Access/LDB “locks” exist, you can delete the LDB, and then get exclusive ownership.

If ANY Windows/Network locks exist, nothing you do with Access can allow you to disconnect another person from the network. You need to go to the Server/PC that hosts the file, and force the disconnection. Access is not a network administration program that does this for you.

Last I looked, Windows Server was set by default to time-out broken file connections 15 minutes after the network session was lost. So if you turn off a PC, wait 15 minutes, then the Windows/Network locks will go (default timing). Alternatively: Admin tools, Computer Management,System Tools,Shared Folders, Sessions. Select the file you wish to unlock, and delete the session.

Leave a Comment