Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 10:25 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Laindir Sarnon
Default Operation must use an updateable query.

I keep getting this error whenever I run my ASP page.

Microsoft JET Database Engine error '80004005'
Operation must use an updateable query.

The line of error is where I INSERT values on the database.

I've resarched about this error in the internet but I can't seemt o find the answer. The Folder where the database is located have Read/Write/Modify permision to the users. Also the database itself has the same permission. But still I get the same error. I don't know what to do anymore...

I hope somebody can help me in here...

By the way, sorry if I had to start a new topic, I can't seemt o find where I can squeeze this one... :D

Thanks ion advance and have a nice day!

 
Old September 1st, 2004, 10:48 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Laindir Sarnon
Default

I also want to add as question:

Where can I configure IUSR Account? is it the account of each user of the program? Where can I configure it?

 
Old September 1st, 2004, 11:13 PM
Authorized User
 
Join Date: Aug 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sinapra Send a message via MSN to sinapra Send a message via Yahoo to sinapra
Default

try to print the insert/update statement and run it on backend and check whether it inserts there, if its working, there is something wrong in the code else you can check where the problem is in the back-end.

I didnot get your second question?

Regards

sinapra
 
Old September 1st, 2004, 11:55 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Laindir Sarnon
Default

My query worked out fine...but I still can't figure out what's wrong with my code...

I have the code below..

if inStr(1,UserName,".") = 0 then

    tym = time()

    d8 = date()

    Fullname = Username

    set con = Server.CreateObject("ADODB.Connection")

    con.Provider="Microsoft.Jet.OLEDB.4.0"

    con.Open Server.Mappath("NewsDB.mdb")

    strValues = " '"&Fullname&"', '"&d8&"', '"&tym&"', '"&readers&"' "

    SQL = "Insert into Visitors (VisitorName, DateOfVisit, TimeOfVisit, VisNum) values ("&strValues&") "

' response.write sql

    con.Execute(SQL)

else...

 
Old September 2nd, 2004, 02:11 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

  Make sure your MDB file is not Read Only. Or you dont have sufficient privelege to insert/update/delete.



 
Old September 2nd, 2004, 02:50 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Laindir Sarnon
Default

Hi already got it...It was not about the priviledge to write/update/delete coz I was having Full control of the file. As sinapra suggested, it was on the query. I had to configure something in the IIS to solve my problem...anyway...thanks for the Help and thank you for taking the pains to answer my questions.

Although I have another question that I can't seem to find the problem...

First...the error is...
>Microsoft JET Database Engine error '80040e07'
>Datatype mismatch in criteria expression.

My code is the following...

<% SQL = "Select Distinct Department, WebPage from NewsDatabase where Volume = "&vol&" and Status = 'Released'"

        set rsSection = con.Execute(SQL)

    'Response.Write sql

    dCtr = 0

    while not rsSection.EOF

        dCtr = dCtr + 1

        'Response.write rsSection("WebPage") & " <br> "

        rsSection.Movenext

    wend

        'Response.Write dCtr

        rsSection.MoveFirst

    For j = 1 to dCtr

    web = rsSection("WebPage")
    dep = rsSection("Department")

    if dep = "Finance and Administration" then

--> dep = "Fin. Admin. Pur. IT"

    end if
%>


The one with the arrow is where the error points...

Hope you could still help me with one..Thanks in advance! :D

 
Old September 2nd, 2004, 04:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am not sure if that line returns error. Also not sure what you are trying to do here... which you could do within the WHILE loop above. Can you explain a bit on that?
Code:
For j = 1 to dCtr
    web = rsSection("WebPage") 
    dep = rsSection("Department") 
    if dep = "Finance and Administration" then
-->        dep = "Fin. Admin. Pur. IT"
    end if
%>
Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation must use an updateable query sandhya12_rcnair ASP.NET 2.0 Professional 3 November 11th, 2008 11:56 AM
Operation must use an updateable query darkhalf Access 4 February 29th, 2008 12:50 PM
Operation must use an updateable query hchlebowski ASP.NET 1.0 and 1.1 Basics 1 January 24th, 2006 07:11 AM
Operation must use an updateable query chaos2003 Classic ASP Databases 4 August 22nd, 2003 03:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.