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. upgrading databse issue

upgrading databse issue

Scheduled Pinned Locked Moved Database
csharpdatabasecomhostinghelp
7 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.
  • Y Offline
    Y Offline
    Yulianto
    wrote on last edited by
    #1

    If you have created an application which uses database, and installed it for your client. Next you have updated the application and updating the database structure. So the client's database and the newest database has different structure. What is the ideal way to update the database structure, and still using client's previous entered data. I use C#.


    Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

    A D 3 Replies Last reply
    0
    • Y Yulianto

      If you have created an application which uses database, and installed it for your client. Next you have updated the application and updating the database structure. So the client's database and the newest database has different structure. What is the ideal way to update the database structure, and still using client's previous entered data. I use C#.


      Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Depends on the changes. You could possibly use an amend script, otherwise you create the new table and copy the data in. There is no easy way.

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • Y Yulianto

        If you have created an application which uses database, and installed it for your client. Next you have updated the application and updating the database structure. So the client's database and the newest database has different structure. What is the ideal way to update the database structure, and still using client's previous entered data. I use C#.


        Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        With over 900 posts you should know better than to cross post :mad:

        Bob Ashfield Consultants Ltd

        Y 1 Reply Last reply
        0
        • Y Yulianto

          If you have created an application which uses database, and installed it for your client. Next you have updated the application and updating the database structure. So the client's database and the newest database has different structure. What is the ideal way to update the database structure, and still using client's previous entered data. I use C#.


          Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

          D Offline
          D Offline
          David Mujica
          wrote on last edited by
          #4

          I have used this method successfully before ... Create a set of "Upgrade" scripts for your database. You could have a UpgradeSchema script where you would alter tables, indexes, etc and have a "UpgradeSystemData" script where you could populate your systems tables like a table of States, or a Tax table. Best advice is to TEST, TEST, TEST these scripts an important test is to run the script once, then run it again on the newly upgraded database ... you will need to trap for the case where you want to add a column to a table and the table already exists. Also, trap for duplicate keys when inserting data. Good luck.

          1 Reply Last reply
          0
          • A Ashfield

            With over 900 posts you should know better than to cross post :mad:

            Bob Ashfield Consultants Ltd

            Y Offline
            Y Offline
            Yulianto
            wrote on last edited by
            #5

            Which post are you referring?


            Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

            A 1 Reply Last reply
            0
            • Y Yulianto

              Which post are you referring?


              Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              Yours of course. You posted this same question here and the C# forum- maybe a mistake?

              Bob Ashfield Consultants Ltd

              Y 1 Reply Last reply
              0
              • A Ashfield

                Yours of course. You posted this same question here and the C# forum- maybe a mistake?

                Bob Ashfield Consultants Ltd

                Y Offline
                Y Offline
                Yulianto
                wrote on last edited by
                #7

                Oh, that's right. I though the problem is related to C# and database. Don't know where to post.


                Don't work hard, but work effectively. Web hosting | Buy stock | Option strategy | home mortgage

                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