ASP cannot update Access Database Solution

Source: Internet
Author: User
Preface:

It is a fault caused by XP. I personally think that XP pursues excessive security, and the specific functions cannot be implemented as compensation. let's take a look at this ASP example. I believe that people who often come into contact with ASP will often encounter this problem: clearly understand their ownCodeThe write is correct. Why cannot I update it normally? The following error messages are not caused by ASP code errors, but by permission settings. when I first encountered this problem, I used to check my code for less than 10 times, that is, I did not check ASP errors. finally, I checked the Internet and found that it was an evil permission.

Running Environment: Windows XP

In IIS 5.0

--------------------------------------------------------------------

Run ASP on Windows XP + IIS serverProgramThe database may fail to be updated. The specific error message may be:

1. Microsoft Jet Database Engine (0x80040e09) cannot be updated. The database or object is read-only.

2. The Microsoft ole db provider for ODBC drivers (0x80004005) [Microsoft] [ODBC Microsoft Access driver] operation must use an updatable query.

3. Microsoft Jet Database Engine (0x80004005) must use an updatable query.

There are several solutions as follows (different solutions may be provided for different servers. Here we assume that the home directory of the website is wwwroot ):

A. Right-click the wwwroot folder and choose "properties"> "read-only"

This method is the simplest and occasionally effective

B. Right-click your database file folder and choose "properties"> "security"> "Add User: "IUSR _ computer name" and "IUSR _ computer name" Read and Write Permissions

This method is currently the best solution to this problem. Generally, it can solve the problem.

You may not be able to view the "Security" option by right-clicking on the XP system. Open "Tools"> "Folder Options"> "View"> cancel "use simple file sharing" (recommended) "And then you can find the" Security "option in the property.

C. Right-click the wwwroot folder and choose "properties"> "Web Sharing"> "shared folder"

 

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.