What is the use of LDB files?

Source: Internet
Author: User


What's the
ldb file for?





 








This article reference address: http://support.microsoft.com/default.aspx?kbid=208778





Summary:


. ldb files are very important in a multiuser environment. This file is used by MS Jet DB Engine V4.0 to determine which record in the shared database is locked and who is locked





More information:


. ldb files are automatically created and deleted by users of the shared database ... The LDB file establishes and stores the computer name, user name, and placement extension domain lock. LDB files generally with. MDB with the same name and with the. MDB files in the same directory, in the. The MDB file is created and locked when it is opened. For example, if you open a C:\Northwind.mdb file, the C:\northwind.ldb file is automatically created and locked.





when the last user closes the shared database, the. ldb file is automatically deleted. However, when the user does not properly shut down the database or the database has been marked as corrupted, then. The LDB file is not automatically deleted because. The LDB file is where the database is being used when the database is corrupted.





Permission issue:


remember to give. LDB the folder in which the file is located has certain permissions.


If you are ready to share a database, the. The MDB file should be placed in a directory where the user has read, write, build, delete permissions. Even if you ask each user to have different file permissions (for example, read-only or writable), all users who can share the data should have read, write, and set permissions to the directory, but you can assign the user to one. The MDB file only has read-only permissions.





Note: If you open a database exclusively, MS JET DB will not be established. LDB file, at which point the user's permissions on the directory require only read and write two permissions.




Contents of the
. ldb file:


MS JET DB ENGINE is available for each user who opens the database in a shared manner. An entry is created in the LDB file with a size of 64 bytes per entry. The first 32 bytes save the computer name, followed by 32 bytes to save the user name. The maximum number of users supported by the JET DB ENGINE is 255, so. The LDB file size will not exceed KB.


When a user closes a shared database, the user is in the. Entries in the LDB file are not immediately deleted, but the entry is overwritten when the next user opens the database. That means you can't get through. LDB file to uniquely determine who is the current user of a database.





. How to use LDB files:

Used by
JET DB ENGINE. LDB the information in the file to determine who locked the data and who is writing the data locked by someone else. If the JET DB ENGINE finds a lock conflict with another user, it reads. LDB file to get the computer name and user name who locked the file or record.





In most locking conflicts, you will get a "write conflict" prompt and cancel your changes while storing the records. In some cases you will get the following tips:





couldn ' t lock table <table name>;  Currently in-user <security name> on computer <computer name>.





Note: The above about. The information for the LDB file is not related to the database file. If one. The LDB file is corrupted and the database file is still functional. But in the hint message that writes the conflict <security name> This part you may see a string of unintelligible words.





Reference:


in Access 2000, you can use VBA to output information about all the login users of a database.





about this code please refer to:


198755 acc2000:checking who logged to Database with Jet UserRoster


http://support.microsoft.com/default.aspx?kbid=198755











Original address: http://support.microsoft.com/default.aspx?kbid=208778


http://www.access911.net Webmaster Collection





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.