Irregular read-only errors

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Irregular read-only errors

    I'm getting the infamous "Cannot update. Database or object is
    read-only" error, however I'm very unsure as to what could be causing
    it.

    My best guess is the db seems to becoming locked for a shortwhile as
    the problem seems to rectify itself after a while. If I wasn't using
    access I'd guess it was a deadlock but if Access is single-threaded
    then that wouldn't be possible, would it?

    I know it's not a permissions issue because the site runs fine most of
    the time, so the db can be updated, and the problem isn't restricted
    to any particular page - once the db's locked any page with an update
    fails.

    The site doesn't experience any heavy load so I don't think it's just
    Access being crap at multi-user connections but it's got to be
    something quite specific as I've been unable to deduce a specific
    cause or replicate it deliberately.

    I can only assume that something is leaving the db in an unclosed
    state. I'm guessing the actual error is being caused by the provider
    not allowing me to open a recordset with the correct cursor and lock
    type and so I'm only getting a read-only recordset which is blowing up
    when I call update? But what's locking it in the first place is a
    mystery to me.

    Could someone someone confirm how IIS loads Access into memory. I read
    somewhere that if there was an error during page execution or timed
    out before my ado code could complete (clean up particularly) then
    this might create a lock??

    FYI I'm using Access 2K through OLEDB 4.0, with ASP 3.0 on IIS 5.

    I'm about ready to switch to using SQL Server (which I know I probably
    ought to do anyway) but some of my SQL is rather tortuous so it won't
    be an easy switch so if I could sort out Access for the time being
    that would be preferrable.

    Would setting the ADO connection mode to adModeReadWrite accomplish
    much?
    Would using a command object with an "UPDATE statement" be a better
    bet than using a recordset's update() method?

    I hope that's enough info to be starting with

    Thanks in advance

    Craig
    CraigB Guest

  2. Similar Questions and Discussions

    1. Retrieving data from (irregular) XML
      I am retrieving XML files like the one at the end of this post. I can use xmlParse to create the object and retrieve elements. However I need to...
    2. Irregular mesh collision
      I have a generally convex model and a ruler with cut-outs for a measurement simulation. Both are set for mesh collision detection. Whether...
    3. Irregular Movie Shape possibilities.
      Hi, Is it possible to create a Movie that is not the standard Rectangular shape? If the Interface goes beyond the Movie size then it gets cut...
    4. getting .mdb database errors? read this ..
      I have had loads of problems trying to WRITE data to my DB, using iis 5.1 on my local winxp machine, even though permissions were set correctly in...
    5. dbms_lob.read errors out with ORA-21560
      OS: Solaris 2.6 RDBMS: Oracle 8.1.7.0 CharSet: UTF8 CLOB Data: Chinese We're experiencing a problem with a JDBC app that retrieves CLOBs from...
  3. #2

    Default Re: Irregular read-only errors

    > Would setting the ADO connection mode to adModeReadWrite accomplish
    > much?
    Maybe. Did you try it? You can do that faster than you can wait for
    answers here...
    > Would using a command object with an "UPDATE statement" be a better
    > bet than using a recordset's update() method?
    Yes! Think about it, you open a recordset object, which locks the table
    temporarily. An UPDATE statement goes in, tweaks a single row, and gets
    out.
    [url]http://www.aspfaq.com/2191[/url]

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)


    Aaron [SQL Server MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139