Solved

Error using insert sql in ASP -Access, NT4.0

Posted on 1998-12-08
2
217 Views
Last Modified: 2013-12-25
I get an operation must use an updatable query error when trying to instert a record into an access(97) database. Server is NT 4.0, IIS, The asp script is listed below:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access 97 Driver] Operation must use an updatable query.

/findit/signinhandle.asp, line 50

Conn.Open  "DBQ=C:\wwwroot\guestbook\guest.mdb;DefaultDir=c:\wwwroot\guestbook;Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;ImplicitCommitSync=Yes;MaxBufferSize=512;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;"

sql = "INSERT INTO tblGuests(Name, EMail, Address1, Address2, City, State, Zip, Kiss, Rock, CheapTrick, ClassicRock, Alt, refer, Comment, Host_Name) "
sql = sql & "VALUES('" & Request("uName") & "', '" & Request("ueMAIL") & "', '" & Request("uaddress1") & "', '" & Request("uaddress2") & "', '"
sql = sql & Request("uCity") & "', '" & Request("uState") & "', '" & Request("uZip") & "', '" & Request("uKiss") & "', '" & Request("uRock") & "', '" & Request("uCheapTrick") & "', '" & Request("uClassicRock") & "', '" & Request("uAlt") & "', '" & Request("urefer") & "', '" & Request("ucomment") &"', '" & CStr(Request.ServerVariables("REMOTE_HOST")) &  "')"
                  
Conn.Execute(sql)
0
Comment
Question by:expert69
2 Comments
 

Accepted Solution

by:
krassiB earned 100 total points
Comment Utility
Possibly you do not have enough permissions on the database file for Internet Guest account IUSR_MACHINE. You can change this from changing NT security permissions for the guest.mdb and guest.ldb files(or guestbook directory with replase permissions on existing files). Give them change permission (RWXD).

If this does not work see in
http://microsoft.com/support
Knowledge base Article ID: Q175168
I think this will help!
0
 

Author Comment

by:expert69
Comment Utility
Thanks for the answer.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now