Reference for solutions to locking data tables in an exclusive manner

Source: Internet
Author: User

For all Dreamweaver software versions, when the database is connected correctly and the record set is successfully bound

Insert a record into the page and preview the webpage for testing. The problem is roughly as follows:

Error Type:
Microsoft ole db Provider for ODBC Drivers (0x80004005)
[Microsoft] [ODBC Microsoft Access Driver] the user 'admin' on the 'Blues' machine locks the data table 'C _ test' exclusively '.

This error may be caused:

1. Access files used by the database

2. Connecting to the database in DW does not use the "Custom connection string", but uses the "Data Source Name (DNS)". This may happen.

For Error 2, I still recommend that you use "Custom connection string". It is strange that I have read several DW related textbooks, this method is used to introduce to readers.

I think it may be a good description of "Data Source Name (DNS)" (when I wrote DW, I think it's hard to understand how "Custom connection string" is for beginners on a web page ).

So I don't need DNS here. We recommend another one. It is because when your web application is uploaded to a network space, DNS needs to be configured by the server administrator, and this operation is basically impossible for us to basically use "virtual hosts" now.

As for how to use the "Custom connection string", I have an article here:

Http://www.cnbruce.com/blog/showlog.asp? Cat_id = 27 & log_id = 219

So now I am so focused on Error 1. The following is a list of solutions. You can pay attention to troubleshooting.

1. database file access permission issues.

This mainly occurs on the machine where the disk format is NTFS, And the FAT32 format does not matter.

When a webpage error occurs, the file may not have the appropriate permissions.

Generally, right-click the database file, select properties, and select security options;

If you are in NTFS format but there is no security option for file attributes, select folder attributes. Note that you can remove "simple sharing" from folder attributes.

If there is a security option, check whether there are any User users. If no User needs to be added, add "Iusr _ computer name". What is the computer name? The user 'admin' on the machine 'Blues' is locked exclusively ......", The machine 'Blues' is your computer name, and so on.

With a guest user, the user is matched with permissions and the "modify" permission is added.

The above operation is illustrated without a diagram. Because my machine uses FAT32, it cannot be used, and the content may be somewhat different. You can simply read it and I will provide you with details on this method as soon as possible. Next, let's look at the second type of description.

2. When you test the web application, your database file is being opened.

For example, the figure I cut above indicates that the database file is opened intentionally, or the figure cannot be cut. This method is simple. Just close the database file.

By the way, the most challenging thing here is that the database file is opened and the table is also opened. In the case of FAT32, Web browsing is still normal (WINXPSP2, ACCESS2003 ), the above error occurs only when the design database table is opened.

Of course, we recommend that you disable it directly.

3. The database file is closed, but the temporary file still exists.

The temporary file is the Access record lock information file, which is automatically generated when the database file is opened. For example, when a WORD file is opened, there will be a file at the same time (M $ is the same thing ). But now the database file is closed, and your temporary file is still there, it can only indicate that you are not shutting down the database normally. Now let's move on and delete the temporary file.

This also happens when "the first time I browsed the page, it was normal. When I refreshed the page, it went wrong again ". In other words, NTFS and temporary files.

4. Restart Dreamweaver to restart the computer.

If you still cannot solve it, get angry, Kill Bill...

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.