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. How to update MS Access database in the installed application?

How to update MS Access database in the installed application?

Scheduled Pinned Locked Moved C#
databasehelptutorialquestionannouncement
2 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.
  • S Offline
    S Offline
    Sifar 0
    wrote on last edited by
    #1

    Hi, I have a setup program that installs my application with an MS Access database. Now, when I have to provide an update to a client, I again build a setup program and give them this setup. The client unistalls his existing program and installs new setup. This process also wipes out his existing database. To overcome this, I set permanent property of database in the setup TRUE. This has resolved the above problem. But now... I have updated few tables in my database. The clients must be provided with the update such that his existing data must be retained intact... HOW to achieve this? Any suggesstion will be greatly helpful?

    Regards, -SIFAR.

    E 1 Reply Last reply
    0
    • S Sifar 0

      Hi, I have a setup program that installs my application with an MS Access database. Now, when I have to provide an update to a client, I again build a setup program and give them this setup. The client unistalls his existing program and installs new setup. This process also wipes out his existing database. To overcome this, I set permanent property of database in the setup TRUE. This has resolved the above problem. But now... I have updated few tables in my database. The clients must be provided with the update such that his existing data must be retained intact... HOW to achieve this? Any suggesstion will be greatly helpful?

      Regards, -SIFAR.

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      My standard practice is to write migration scripts for new versions of the database. Then you can use the migration scripts to update the old database. This can be a lot of code to maintain so what you do is an iterative update process. IE, convert DB V1 to DB V2 then convert the newly created DB V2 to DB V3, etc. This is much easier than writing infinite migration scripts. Be cautious because you will come across database that just cannot be upgraded with 100% accuracy if you do not have a solid change control policy in place.

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

      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