Solved

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

Posted on 1998-12-08
2
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
krassiB earned 100 total points
ID: 1830048
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
ID: 1830049
Thanks for the answer.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

732 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