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. Database & SysAdmin
  3. Database
  4. Access Database Backup

Access Database Backup

Scheduled Pinned Locked Moved Database
csharpdatabasequestion
4 Posts 2 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.
  • J Offline
    J Offline
    John Kh
    wrote on last edited by
    #1

    Hello everyone , I am trying to back up a database using VB.net . Is there any coding for that ? I need to backup a database connected to !!! Not a database that is not connected to !! Because when I open my program it will automatically connect to the database . J ,

    C 1 Reply Last reply
    0
    • J John Kh

      Hello everyone , I am trying to back up a database using VB.net . Is there any coding for that ? I need to backup a database connected to !!! Not a database that is not connected to !! Because when I open my program it will automatically connect to the database . J ,

      C Offline
      C Offline
      ChandraRam
      wrote on last edited by
      #2

      An Access Database is just a file... you could do a file copy to a backup location. I'm not sure that the mdb file being opened will affect this process. If it does, you could always temporarily close the connection and restore?

      J 1 Reply Last reply
      0
      • C ChandraRam

        An Access Database is just a file... you could do a file copy to a backup location. I'm not sure that the mdb file being opened will affect this process. If it does, you could always temporarily close the connection and restore?

        J Offline
        J Offline
        John Kh
        wrote on last edited by
        #3

        Hy , Thx for ur answer . But whats the code like ? Check if the file exist and the copy it to another directory on a button click ? How the code look like ?! Thx again. J ,

        C 1 Reply Last reply
        0
        • J John Kh

          Hy , Thx for ur answer . But whats the code like ? Check if the file exist and the copy it to another directory on a button click ? How the code look like ?! Thx again. J ,

          C Offline
          C Offline
          ChandraRam
          wrote on last edited by
          #4

          John Kh wrote:

          Check if the file exist and the copy it to another directory on a button click

          You could do something like that... that would be the easiest. Only thing is, you will need to make sure that the backup copy works. So restore the database back to original location and check that it actually has been copied over correctly.

          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