Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. i getting error with database connection

i getting error with database connection

Scheduled Pinned Locked Moved ASP.NET
databasehelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    geetha mahendran
    wrote on last edited by
    #1

    i am getting error when i am using database file tht "the "filename.mdb" is opened Exclusively by another user you need permmission to access the flie" how can get over it.

    C F 2 Replies Last reply
    0
    • G geetha mahendran

      i am getting error when i am using database file tht "the "filename.mdb" is opened Exclusively by another user you need permmission to access the flie" how can get over it.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Reboot your computer. If you're still getting it, then something else is starting automatically and gaining a connection. OR, the connection is maintained by a file that is still there ( I seem to recall that Access does something crappy like that ). Look for temporary files and delete them, and maybe make a copy of the file and try connectiing to that. If you can copy it, then nothing has a lock on the file as far as the OS is concerned. Make sure your code closes all connections. The other thing is, sometime when you debug, the process seems to hang around, and it could be your own code that is therefore holding the connection. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • G geetha mahendran

        i am getting error when i am using database file tht "the "filename.mdb" is opened Exclusively by another user you need permmission to access the flie" how can get over it.

        F Offline
        F Offline
        FriendlyFiend
        wrote on last edited by
        #3

        Try deleting any *.LDB files in the same folder as the MDB these are used by access to manage simultaneous logins for the MDB, usually these are left without cleanup if the connection is not closed properly

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups