Why do I get error "Could not open/create lock file, check sharing permissions"?

The Easysoft Access ODBC driver uses a locking information file (.ldb) to allow its users to safely edit a database file that other Windows users may be accessing and updating.

The driver uses a .ldb file to:

The Easysoft Access ODBC driver may have to create and delete a .ldb file as well as write to it. If directory permissions prevent the Easysoft Access ODBC driver from writing to or creating a .ldb file, the driver may return a "Could not open/create lock file, check sharing permissions" error.

If you get this error when opening a database file that Windows users do not require access to, specify an alternative .ldb file directory with the lockfile data source attribute. Specify a directory where you and other users who connect to the data source have write access to. For example:

lockfile = /tmp/Nwind.ldb