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-17-2006, 12:35 PM
    • Member
      5 point Member
    • rogueeyes
    • Member since 08-15-2006, 2:07 PM
    • Posts 1
    I have received this error and tried everything that I've seen listed so far to no avail.  If anyone has any ideas please let me know.  Thanks!!

    I am connecting to an Access database through an ODBC Connector which connects to a System DSN.  Because of server settings that must use a DSN in order to connect to a database this is how it was done.  The entire setup works fine on my local machine running windows XP SP2 and IIS 5.  When I move it to the server I cannot write to the database.  The server is running Windows 2003 and IIS 6. Users are authenticated through windows but they are not impersonated.  When impersonation is turned on I received a Disk or network Error when trying to read or write to the database.  When testing to see what the process runs as it returns machine\ASPNET.

    All of the following accounts are a part of advauthor group: machine\ASPNET, IIS_GPM, IUSR_machine, IWAM_machine, and everything else is IIS_GPM group

    advauthor group for files only can list folder read/data, read attributes, read extended attributes, create files/write data, create folders/append data, write attributes, write extended attributes, delete, read permissions.  The only thing it cannot do is delete subfolders and files, change permissions, and take ownership.  However, there are no deny permissions that are set for the advauthor group.

    advauthor group for This folder and Subfolders are transverse folder/execute file as well as everything listed above.

    When I try to write to the database I end up receiving the System.Data.Odbc.OdbcException: ERROR [HY000] [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. Error that so many people seem to get.  It seems like I've already done everything since the accounts all have read/write access for the database folder and for the database.

    I've looked at a few Microsoft knowledge base articles that said to enable read and write permissions and I followed the steps to enable them. 

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

    05-28-2007, 11:22 AM
    • Member
      6 point Member
    • sivaarikatla
    • Member since 05-28-2007, 3:03 PM
    • Posts 3

    Hi, For the above Error.Please check the Data base permission(MDB File) .it is full control for every one. This may help you alot.I tested abd it is working fine

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

    05-28-2007, 11:22 AM
    • Member
      6 point Member
    • sivaarikatla
    • Member since 05-28-2007, 3:03 PM
    • Posts 3

    Hi,

    For the above Error.Please check the Data base permission(MDB File) .it is full control for every one. This may help you alot.I tested abd it is working fine

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

    05-28-2007, 11:22 AM
    • Member
      6 point Member
    • sivaarikatla
    • Member since 05-28-2007, 3:03 PM
    • Posts 3

    Hi,

    For the above Error.Please check the Data base permission(MDB File) .it is full control for every one. This may help you alot.I tested abd it is working fine

     

    Thanks

    Siva

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

    07-26-2007, 1:07 PM
    • Member
      2 point Member
    • vikivenkat
    • Member since 07-26-2007, 4:54 PM
    • Posts 1

    Hello,

    I too have the similar issue discussed in the forum but unable to sove it. Does anyone have a solution for the problem in Win 2003 OS? Has anyone got it working in Win 2003? Pls let me know the steps you had followed. The following are the things I had followed. Please correct me if I got it wrong anywhere.

     The MDB(Access) File resides in a Win 2003 server.

    Both the MDB File and the folder containing the file have "Full Control" permission for user "Everyone"

    The .NET program which makes an entry in the .MDB file(residing on the Win2003 server) uses the .NET Framework 2.0 and would be run on a Win 2000/ Win XP machine. 

    When the program tries to make an entry in the .MDB file, i get the following error "...operation must be an updateable query..."

    Any help would be greatly appreciated.

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

    09-03-2007, 7:11 AM
    • Participant
      1,304 point Participant
    • CLIPER
    • Member since 07-18-2004, 9:54 AM
    • Philippines
    • Posts 379

    Try to "Remove" the Application.. and then "Create" after that, set permissions again to your app folder. Btw, this problem was really common to IIS 6.

    Cheers,

    CLIPER 

    ------------------------------------------------
    Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own commonsense. ---Buddha (563BC-483BC)
  • Re: FIX: Operation must use an updateable query error when using Access db

    10-06-2007, 6:48 AM
    • Member
      53 point Member
    • thatsashok
    • Member since 06-27-2005, 5:07 AM
    • India
    • Posts 15
    Thanks you are right, it now works OK!! Thank you very much!!!!
    Regards,
    AKS.
    (Please mark as answer if reply helps)
    Convert Multiple Links into One Link
    Post Free Classified Ad
  • Re: FIX: Operation must use an updateable query error when using Access db

    12-27-2007, 12:06 PM
    • Member
      11 point Member
    • nodar10
    • Member since 02-06-2007, 11:08 PM
    • Torino-Italy
    • Posts 60

    I am having the same problem as Bracoute. The same "Operation must be an Updateable Query" error message.

    The others that solved the problem were so happy that forgot to tell what they exactly did.

    I need some details and promise to tell what i did if eventually I will  be also happy.

    federico

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

    12-27-2007, 12:15 PM
    • Member
      11 point Member
    • nodar10
    • Member since 02-06-2007, 11:08 PM
    • Torino-Italy
    • Posts 60

    Sorry I did not yet read all replies!

     

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

    01-03-2008, 9:04 PM
    • Member
      4 point Member
    • echoxray
    • Member since 11-05-2007, 7:47 PM
    • Posts 2

    thx Bachino. you're solution is the correct one - at least it was the one that solved one of my permissions problems.

    You must prefix ASPNET with the computer name that you're dealing with.

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

    01-21-2008, 2:22 PM
    • Member
      14 point Member
    • ktkarunadasa
    • Member since 01-21-2008, 7:06 PM
    • Posts 2

    I too faced the above problem. In my server permission had not been made to update. Once permission was granted for update it worked well.

    sponsored link

    http://www.articlescloud.com

     

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

    01-28-2008, 11:08 PM
    • Member
      8 point Member
    • Rkiser1958
    • Member since 11-27-2007, 5:32 PM
    • Posts 47
    I am having the same problem except my code works fine on my computer using IIS, now that I have it on the web using a Web Hosting service (on a windows server) all of the "search" commands work but when I try to insert data I get the error:

    Server Error in '/' Application.

    Operation must use an updateable query.

    and one of the lines in my code is highlighted

    "SqlDataSource1.insert()"                it says SqlDataSource but it is configured using an Access Data source.

    Like I said it works fine on my computer when I created a virtual directory using IIS.

    Now is the problem with my code or on the server side.

    I have talked to Tech support for the web service, and that guy tonight didn't have a clue, so he wants me to call back.

    Any help anyone

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

    01-30-2008, 2:27 AM

    Rkiser1958:
    I am having the same problem except my code works fine on my computer using IIS, now that I have it on the web using a Web Hosting service (on a windows server) all of the "search" commands work but when I try to insert data I get the error:

    Server Error in '/' Application.

    Operation must use an updateable query.

    and one of the lines in my code is highlighted

    "SqlDataSource1.insert()"                it says SqlDataSource but it is configured using an Access Data source.

    Like I said it works fine on my computer when I created a virtual directory using IIS.

    Now is the problem with my code or on the server side.

     

    If you had read through the posts in this thread, you would have found that the cause of the error is insufficient permissions. On WinXP, the ASPNET account needs Modify permissions on the folder containing the database file.  On Win 2k3, it's the NETWORK SERVICE account.

     

     

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

    01-30-2008, 10:01 AM
    • Member
      8 point Member
    • Rkiser1958
    • Member since 11-27-2007, 5:32 PM
    • Posts 47

    I was sure it was on the Server side, and I finally got someone to fix it.

    Thanks

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

    03-13-2008, 5:22 AM
    • Member
      22 point Member
    • gorla.naveen
    • Member since 03-12-2008, 8:07 PM
    • Posts 9

    Hi Henrix,

    this is naveen 

    Query = "insert into PlayerInfo (Name,Email,CharacterName) values ('" & NameBox.Text '," & MailBox.text & "','" & CNameBax.text & "')"

    in tha above query u missed the single quatation near mailbox.text keep the quatation and try it once

    Filed under:
Page 5 of 6 (87 items) « First ... < Previous 2 3 4 5 6 Next >