Access ldb file not removed

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Access ldb file not removed

    A script I have created leaves an Access ldb file on the server after it has
    run, and I am worried that this meand that resources are not being released.

    I am using asp to read data from an Access database to populate some menus.
    The asp script uses ADO to read three recordsets, each of which is then closed
    and the recordset objects set to Nothing. After running the script, an ldb file
    is left on the server (the mdb file is Menus.mdb, the created file is
    Menus.ldb). I understand why the ldb file is created: it's a file locking table
    and Access creates one whenever data is accessed. However, I thought that the
    ldb file would be removed after all the relevant objects had been closed.

    The recordsets use a connection string, in statements of the format:

    rstMenu1.ActiveConnection = cnnMenus

    where cnnMenus is the connection string to the Menus mdb. I don't create a
    connection object as such, so I don't have anything to close. Is there a
    connection object created for me? If so, how do I close it and will that get
    rid of the ldb file?

    Thanks

    Ian

    Blim Guest

  2. Similar Questions and Discussions

    1. user cannot save draft - lock file removed
      One of our clients (who has a few problems with Contribute already, for various reasons) contacted me with this error he recieved: I attempted to...
    2. Network File access using anonymous access
      I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our...
    3. Help needed with ASP form browse for file, create link to file and insert in access database
      I have a form where a user enters their name, date etc. i also want them to be able to click on a browse button and select a file which will then...
    4. OE removed access to the following unsafe attachments
      I recently had my Hard drive replaced and lost everything on the old one, so within the last few days I have put back all of my old programs...
    5. A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY?
      Hi. This is an error that comes up fairly regularly when trying to run the "Rebuild All" command in a Solution that contains more than one...
  3. #2

    Default Re: Access ldb file not removed

    Restart the server
    Speegs Guest

  4. #3

    Default Re: Access ldb file not removed

    Hi Speegs,

    The server in question is my laptop, running IIS. This gets rebooted quite a
    lot, but the problem remains. I can get rid of the ldb by opening the mdb in
    Access, then closing Access. If I then run my asp script the ldb returns.

    Ian

    Blim 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