FIX: Operation must use an updateable query - error when using Access db

Last post 06-30-2009 10:33 AM by sirdneo. 86 replies.

Sort Posts:

  • Re: FIX: Operation must use an updateable query error when using Access db

    08-20-2008, 2:13 PM
    • Member
      2 point Member
    • vigraman
    • Member since 08-20-2008, 6:12 PM
    • Posts 1

    Thank u very much

     

    Regards vigraman (India) 

  • Re: FIX: Operation must use an updateable query error when using Access db

    10-11-2008, 12:42 AM

    Hi All,

    I need really help from you guys.

    My code is as follows..

     <%
     dim con
     set con = server.createobject("adodb.connection")
     dim rsdesig
     set rsdesig = server.createobject("adodb.recordset")
     dim str
     con.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=E:\Inetpub\wwwroot\WebReg\webreg.mdb"
     str="insert into webreg(AgntName,MmbrSName,mbraccount,orderStatus,DDate)values('" & request.form("AgntName") & "','" & request.form("MmbrSName") &"','" & request.form("mbraccount") & "','" & request.form("orderStatus") &"','" & request.form("hdnSysdate") & "')"
     Response.Write str
     con.Execute str
     Response.Redirect "update.asp"
    %> 
     
    Once i  submit the data from the main page i get this error

    Error Type:
    Microsoft JET Database Engine (0x80004005)
    Operation must use an updateable query.
    /webreg/Update1.asp, line 10

    I have checked all possible steps that you all said previously but still i get this message

    Kindly help me the work i am doing is very critical.

    Thanks in advance.
    Pradeep

     

  • Re: FIX: Operation must use an updateable query error when using Access db

    10-11-2008, 6:19 AM

     

    pradeepavadhani:
    Operation must use an updateable query.
    /webreg/Update1.asp, line 10

    You are using classic ASP (pages end in .asp) whereas this forum covers ASP.NET (pages end in .aspx).  They are completely different.  In your case, you need to apply MODIFY permissions to the IUSR_yourmachinename account to the E:\Inetpub\wwwroot\WebReg folder.  That should solve the problem.

     

    Regards Mike
    [MVP - ASP/ASP.NET]
    My site
    What ASP.NET can and can't do
  • Re: FIX: Operation must use an updateable query error when using Access db

    10-29-2008, 6:57 AM
    • Member
      6 point Member
    • pkmnambiar
    • Member since 10-29-2008, 10:53 AM
    • Posts 3

     

    Go to Control  Panel >> Administrative Tools >> Computer Management  >>>>Services and application >>IIS there right click on the folder containg data base and tick on the check box READ and WRITE.

     

    After that restart IIS.

     

     

    NOW THE PROBLEM IS SOLVED(No need to go for FAT file system)

  • Re: FIX: Operation must use an updateable query error when using Access db

    10-29-2008, 7:00 AM
    • Member
      6 point Member
    • pkmnambiar
    • Member since 10-29-2008, 10:53 AM
    • Posts 3

     

    Go to Control Panel >> Administrative Tools >> Computer Management >>>>Services and application >>IIS there right click on the folder containing data base goto properties, then tick on the check box READ and WRITE. After that restart IIS. NOW THE PROBLEM IS SOLVED(No need to go for FAT file system)
  • Re: FIX: Operation must use an updateable query error when using Access db

    10-29-2008, 7:01 AM
    • Member
      6 point Member
    • pkmnambiar
    • Member since 10-29-2008, 10:53 AM
    • Posts 3

    The problem is not with the code...

    Go to Control Panel >> Administrative Tools >> Computer Management >>>>Services and application >>IIS there right click on the folder containing data base goto properties, then tick on the check box READ and WRITE. After that restart IIS. NOW THE PROBLEM IS SOLVED(No need to go for FAT file system)
  • Re: FIX: Operation must use an updateable query error when using Access db

    11-08-2008, 12:21 AM

    I also had the same problem. But by the Grass of Allah i solved it with only a single click if u like, try it :

    "Right click on the folder containing your access database then go to properties-security tab, select everyone group and give it write permissions". check it out

  • Re: FIX: Operation must use an updateable query error when using Access db

    11-21-2008, 5:47 PM
    • Member
      4 point Member
    • slimx3m
    • Member since 11-18-2008, 3:40 AM
    • Posts 7

     thnx for this info. after have my web running locally and then uploading it to my server i had this error and i was able to fix it right-away

  • Re: FIX: Operation must use an updateable query error when using Access db

    01-05-2009, 8:17 AM
    • Member
      2 point Member
    • mryogi76
    • Member since 12-30-2008, 9:56 AM
    • Posts 4

    I have set Full permission to IUSER as well as Everyone for the folder containing mdb, which is App_data. But it doesn't work for me. I still get - "Operation must use an updateable query."

  • Re: FIX: Operation must use an updateable query error when using Access db

    06-11-2009, 9:50 PM
    • Participant
      1,398 point Participant
    • Sayre
    • Member since 07-24-2008, 5:03 AM
    • Manila, Philippines
    • Posts 349

    Hi,

    try to right click your access file then uncheck the checkbox if the Read-Only are checked. I think this error result because of the permission.

    Hope This One Can Help.
    Thanks

    To Be Happy Is To Be YourSelf

    codeincsharp.blogspot.com
  • Re: FIX: Operation must use an updateable query error when using Access db

    06-19-2009, 9:26 AM
    • Contributor
      2,748 point Contributor
    • shabirhakim1
    • Member since 03-31-2009, 11:33 AM
    • Bangalore
    • Posts 443

    This error USUALLY occurs when you attempts to perform an UPDATE or some other action that alters the information in the database.

    This error occurs because dataobjects what ever ado or ado.net  is unable to write to the Microsoft Access database due to insufficient write/modify permissions, which can be easily fixed by granting read/write to IUSR_<machineName> and IWAM_<machineName>.

    IUSR_<machineName> and IWAM_<machineName> come into focus when an anonymous web user needs to modify the Microsoft Access database & while doing so Jet creates an .ldb file to handle database locking. If the above mentioned 2 users don't have the necessary permissions, the lock file isn't created & ultimately the Microsoft Access database can't be modified..

    To fix this problem, right click on the folder which holds the Microsoft Access database & choose properties. Use the Security tab in Explorer to adjust the properties for this folder so that the Internet Guest account has the correct writable permissions.

    Also make sure that the MDB file itself isn't marked as read-only, and that you don't have the MDB file open; particularly in exclusive mode; while trying to reach the Microsoft Access database from ASP

    Regards

    shabir hakim

    Good is Never Good .if better is accepted
  • Re: FIX: Operation must use an updateable query error when using Access db

    06-30-2009, 10:33 AM
    • Contributor
      7,266 point Contributor
    • sirdneo
    • Member since 12-16-2008, 12:45 AM
    • Karachi, Pakistan
    • Posts 1,141

        1- Right Click on FOlder where mdb file is placed and Select Properties
        2- Goto Security Tab
        3- Click Add, then click Location.
        4- Select your pc name, usually first item.
        5- Press Ok, then press advance and then Find Now.
        6- Select ASP.NET user if not exist then select Authenticated Users.
        7- Press Ok. And Select Read/Write/Modify/List FOlder

        8- Also make sure mdb file is not read only.

     

    Thanks,
    Zeeshan Umar

    ~Please Mark As Answer, if one or multiple posts, which helped you in your problem. So that it might be useful for others~

    My Blog
Page 6 of 6 (87 items) « First ... < Previous 2 3 4 5 6