Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 1998-12-08
2
Medium Priority
?
233 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 400 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

597 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