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. General Programming
  3. C#
  4. Accessing a .mdb database on a CD

Accessing a .mdb database on a CD

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
8 Posts 6 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.
  • D Offline
    D Offline
    Den2Fly
    wrote on last edited by
    #1

    Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

    M J B A D 6 Replies Last reply
    0
    • D Den2Fly

      Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      nSun wrote: perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Yes,there is a lock file that should be written near .mdb file but I don''t think this is specific to C# only. Mazy No sig. available now.

      1 Reply Last reply
      0
      • D Den2Fly

        Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

        J Offline
        J Offline
        J Dunlap
        wrote on last edited by
        #3

        Yes, the Jet database engine, which Access DBs are based on, create a *.ldb database lock file. But this has nothing to do with whether or not you use C#.

        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
        "You must be the change you wish to see in the world." - Mahatma Gandhi

        T 1 Reply Last reply
        0
        • J J Dunlap

          Yes, the Jet database engine, which Access DBs are based on, create a *.ldb database lock file. But this has nothing to do with whether or not you use C#.

          "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
          "You must be the change you wish to see in the world." - Mahatma Gandhi

          T Offline
          T Offline
          Tatham
          wrote on last edited by
          #4

          I'm not experienced in Access so don't quote me - but... Is it possible to open the database as a shared connection - would this remove the need to write the lock file. Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989

          1 Reply Last reply
          0
          • D Den2Fly

            Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

            B Offline
            B Offline
            Braulio Dez
            wrote on last edited by
            #5

            Hi, If you choose "Read Only" AND "Open Exclusive" together, Access won't create the *.ldb file if it isn't already there. Another option is to get any "ldb" file, and copy it into the CD as well... not very clean solution, but it seems that it works fine :-) Good luck Braulio

            1 Reply Last reply
            0
            • D Den2Fly

              Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

              B Offline
              B Offline
              Braulio Dez
              wrote on last edited by
              #6

              Hi, Have you tried to set "Exclusive Access" and login to the database with an user that only has "Read Data" access ? Tools >> Security >> User and Group Accounts Tools >> Security >> User and Group Permissions HTH Braulio

              1 Reply Last reply
              0
              • D Den2Fly

                Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                It is possible to open an Access database which resides on a CD, but you must open it as Exclusive, Read-Only. This prevents the ldb file from being created.

                1 Reply Last reply
                0
                • D Den2Fly

                  Regards, We have developed a multimedia software using C# which uses a .mdb (MS-Access file) as database. When burning the whole project on the CD, the program coulden't access the database so we had to to install the .mdb file on the user's system HDD and that works. But I still wonder why it was not possible to read our database on the CD and if it is anyway to do so. perhaps C# needs to write some temporary files beside the .mdb file to work with or what? Thanks for any note and help, -nSun --- "Art happens when you least expect it"

                  D Offline
                  D Offline
                  Den2Fly
                  wrote on last edited by
                  #8

                  Thanks all for helps. -nSun --- "Art happens when you least expect it"

                  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