The database cannot be updated or the database or object is read-only

Source: Internet
Author: User

Running Environment: Windows XP
In IIS 5.0
--------------------------------------------------------------------
Running ASP programs on Windows XP + IIS servers may cause database update failures. 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"

--------------------------------------------------------------------
The last point is that if you want to set your machine as a server for debugging ASP, it is best not to use Windows XP system. Win 2000 is the best choice, but it is not feasible... so be prepared to take a lot of detours !....
Of course, when XP encounters an inexplicable problem, consider XP permission settings.

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.