Access database wont unlock

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Access database wont unlock

    I am finding it impossible to unlock an access database.

    the specs:
    Windows 2000 server
    CF 5.0
    IIS
    Access db created in Access 2003

    The problem: the damned ldb file is there. I have attempted to re-verify the
    database in CF admin, as well as intentionally crashing the database by calling
    tables that dont exist. The only way i can unlock it is if no one uses the
    database for like 20-30 minutes and it unlocks itself. Its very odd. any
    ideas?

    jgladnick Guest

  2. Similar Questions and Discussions

    1. Database is wont give me access
      I have loaded my webpages on the net and when I call a page to the browser it gives me the error: Security: The requested template has been denied...
    2. My database wont work.
      Basicly im new to asp. Ive been learning to use it through one of the dummies books. I have the following error: Error Type: Microsoft OLE DB...
    3. Write Access to Access DataBase
      I'm trying to update a Access Database from information gained from a ASPX page. The database will not update. I'm sure it is in some security...
    4. Why wont this access an array???
      Can someone please tell me how to access elements from a multiple selection list? From what ive read on other posts, this is correct. I keep...
    5. Unlock Computer
      I automatically get a screen called: Unlock Computer everytime I leave the computer. How can I get rid of this lock and eliminate locking the...
  3. #2

    Default Re: Access database wont unlock

    DURA LEX SED LEX

    That's the way it is, once the database is on the server you have to wait
    20-30 minutes of inactivity before the damn .ldb file disappear.

    If you have to do frequent maintenance of the databse the best way is to
    create an interface online, a kind of admin web page with login that will let
    you manipulate the records in the database even when the .ldb is present.

    IHTH,

    Dario

    xcoldnet Guest

  4. #3

    Default Re: Access database wont unlock

    Make sure that you do not select Maintain Connections for your Access
    datasource in CF administrator, as this is not recommended. (See the old tech
    note attached) I believe that the recommendation still applies.

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17034[/url]

    In ColdFusion Administrator, modify every Access ODBC Data source and set the
    following (you will need to click the CF Settings button to see these):
    Buffer Size = 0 (ODBC only)
    Page Timeout = 600 (ODBC only)
    Uncheck Maintain Database Connections

    Phil

    paross1 Guest

  5. #4

    Default Re: Access database wont unlock

    Its easy to get rid of the ldb file. Just throw a known bad query at the
    database.

    <cfquery datasource="foo" name="bar">
    SELECT bingo FROM nameo WHERE yoo='Hoo'
    </cfquery>

    A goofball query like the above will immediately break the lock and you can do
    as you please... assuming of course you do not have a table where these
    parameters are correct :D

    That link that paross1 gave you is very, very old information and no longer
    applicable unless you are using CF 4 or CF 5. Even so, I wouldn't go anywhere
    near an OLE connection in CF. I tried it back in the day (CF 4.5 I believe)
    and found all sorts of weird things using it... Not something you have to worry
    about now that its the 21st century :D You should use a standard JDBC
    connection, which didn't exist back when that article was written.

    I would, however, definitely uncheck "maintain database connections", although
    I'm not sure the reasons for its use still exist... Do it out of paranoia until
    told differently by someone who knows. Be advised its use will torpedo
    performance, if such a word as 'performance' can be used in association with
    Access.


    MattRobertson Guest

  6. #5

    Default Re: Access database wont unlock

    That link that paross1 gave you is very, very old information and no longer
    applicable unless you are using CF 4 or CF 5.

    If you notice, the original poster is using ColdFusion 5, so I would say that
    the uncheck maintain database connections recommendation would apply.

    I would, however, definitely uncheck "maintain database connections"

    That is all that I was saying. Also, I don't know where you got the OLE
    connection idea, as I was referring to an ODBC connection to Access.

    Phil



    paross1 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