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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Update Master Database Daily comparing with old one

Update Master Database Daily comparing with old one

Scheduled Pinned Locked Moved Database
csharpdatabasetutorialannouncement
4 Posts 4 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.
  • R Offline
    R Offline
    RAJAGOPAL PATABALLA
    wrote on last edited by
    #1

    Hi, We are working with one of the client We recieve daily updated database from client We have to compare the old database and the newly records should be updated Guide me how can we implement this logic in .net or any solution Regards RajaGopal India

    D H I 3 Replies Last reply
    0
    • R RAJAGOPAL PATABALLA

      Hi, We are working with one of the client We recieve daily updated database from client We have to compare the old database and the newly records should be updated Guide me how can we implement this logic in .net or any solution Regards RajaGopal India

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

      I'm a bit confused. :confused: If you receive an updated database from your client on a daily basis, why don't you just replace the old database with the new one ? Otherwise, you will need to create a reconciliation program that considers the following: 1) New records 2) Deleted records 3) Update records You could apply this logic on a table by table basis, but the problem arises when there are constraints among dependent tables. If you try to insert a record in a table and the foreign key does not exist yet in the parent table you will get an insert error. One method around this is to drop all constraints when performing this reconcilliation and re-apply the constraints when the process is complete. Not an easy task. Best of luck.

      1 Reply Last reply
      0
      • R RAJAGOPAL PATABALLA

        Hi, We are working with one of the client We recieve daily updated database from client We have to compare the old database and the newly records should be updated Guide me how can we implement this logic in .net or any solution Regards RajaGopal India

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        Assuming that your Database is MS SQL Server and that it is >= 2005, this[^] may be of interest to you.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        1 Reply Last reply
        0
        • R RAJAGOPAL PATABALLA

          Hi, We are working with one of the client We recieve daily updated database from client We have to compare the old database and the newly records should be updated Guide me how can we implement this logic in .net or any solution Regards RajaGopal India

          I Offline
          I Offline
          i i i
          wrote on last edited by
          #4

          You send whole database or part of the database means only those items which are updated or changed.

          Best Regards, SOFTDEV If you have knowledge, let others light their candles at 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