| 4GuysFromRolla.com : ASP FAQS : Databases, Errors | |||
|
| |||
| Question: | ** UPDATED 24 June 2003 **: Why am I getting "Operation must use an updateable query" errors? | ||
|
| |||
| Answer: | The answer to this question comes from a post by Derek Branch in the Databases Forum on the ASPMessageboard. Here's what Microsoft has to say about the error message... It's usually a problem with permissions: [http://support.microsoft.com/support/kb/articles/Q175/1/68.ASP] SYMPTOMS The following is a common error encountered when using ActiveX Data Objects (ADO) with Active Server Pages: Microsoft OLE DB Provider for ODBC Drivers error ' 80004005' CAUSE This article explains the three primary causes of this error, and the workarounds. Although this article refers to Microsoft Access databases, the information provided here also applies to other types of databases. RESOLUTION This error is typically encountered when your script attempts to perform an UPDATE or some other action that alters the information in the database. This error occurs because ADO is unable to write to the database for one of the following reasons: The most common reason is that the Internet Guest account ( IUSR_MACHINE) does not have Write permissions on the database file (.mdb). To fix this problem, use the Security tab in Explorer (see below if the Security tab does not appear!)) to adjust the properties for this file so that the Internet Guest account has the correct permissions. NOTE: When using Microsoft Access databases with ADO, it is also necessary to give the Internet Guest account Write permissions on the directory containing the .mdb file. This is because Jet creates an .ldb file to handle database locking. You may also need to give read/write permission on the Temp folder because Jet may create temporary files in this directory. A second cause of this error is that the database was not opened with the correct MODE for writing. If you perform the Open on the Connection object, you use the Mode property to indicate the permissions on the connection as shown here:
NOTE: By default, the MODE is set to
"Our situation: ASP and Access DB worked fine locally - did not work when moved to the host server. 'Write' permissions were the obvious culprit, so we modified the permissions on the directory and also thru the IIS Admin interface. Still did not work. Contacted the host and they said "You need to set write permissions before you put the db in it. Try deleting the database, and re-uploading it, and it should work." Had not heard that before, but it worked." | ||
|
FAQ posted by Scott Mitchell at 12/21/2000 6:38:47 PM to the Databases, Errors category. This FAQ has been viewed 119,416 times. | |||
Copyright 2013 QuinStreet Inc. All Rights Reserved.
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers