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. Current & Backedup database records out of sync problem

Current & Backedup database records out of sync problem

Scheduled Pinned Locked Moved Database
databasesecurityhelp
6 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.
  • S Offline
    S Offline
    saini arun
    wrote on last edited by
    #1

    Hello, I have a database which is being backed up on daily bases. According to requirement, we need to remove records from database those are older than 30 days. This is working fine. But the problem is we are only able to delete old records from live database. This is to be noted that the same records has been already backed up before deleting. Now, due to security purpose, we need to remove the same old records from backed up database too. Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted. Can you please provide me some suggestions regarding this requirement. Thanks.

    L M 2 Replies Last reply
    0
    • S saini arun

      Hello, I have a database which is being backed up on daily bases. According to requirement, we need to remove records from database those are older than 30 days. This is working fine. But the problem is we are only able to delete old records from live database. This is to be noted that the same records has been already backed up before deleting. Now, due to security purpose, we need to remove the same old records from backed up database too. Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted. Can you please provide me some suggestions regarding this requirement. Thanks.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Lucky123456 wrote:

      Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted.

      Think about this; how can you delete records from a database (or any type of file) without loading that file to disk and accessing it via some sort of software?

      S 2 Replies Last reply
      0
      • L Lost User

        Lucky123456 wrote:

        Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted.

        Think about this; how can you delete records from a database (or any type of file) without loading that file to disk and accessing it via some sort of software?

        S Offline
        S Offline
        saini arun
        wrote on last edited by
        #3

        Thanks, I am googling for any option available.

        1 Reply Last reply
        0
        • L Lost User

          Lucky123456 wrote:

          Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted.

          Think about this; how can you delete records from a database (or any type of file) without loading that file to disk and accessing it via some sort of software?

          S Offline
          S Offline
          saini arun
          wrote on last edited by
          #4

          Not able to find such method to read/modify a .bak file. Thinking about any alternate solution. :doh:

          L 1 Reply Last reply
          0
          • S saini arun

            Not able to find such method to read/modify a .bak file. Thinking about any alternate solution. :doh:

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            C# has no native methods to read/modify the contents of a backup of a database file that I'm aware of. Restore the database, make the changes, write a new backup, replace the old backup with the new one.

            I are Troll :)

            1 Reply Last reply
            0
            • S saini arun

              Hello, I have a database which is being backed up on daily bases. According to requirement, we need to remove records from database those are older than 30 days. This is working fine. But the problem is we are only able to delete old records from live database. This is to be noted that the same records has been already backed up before deleting. Now, due to security purpose, we need to remove the same old records from backed up database too. Restoring all old backups and and then deleting the records will not work as there are total 30 backups which contain the entry for the records to be deleted. Can you please provide me some suggestions regarding this requirement. Thanks.

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              That is one of the weirdest business models I have EVER heard of (in 20+ years of hearing some really screwy ideas). A backup is NOT a data storage tool it is a RECOVERY tool, deleting data from a backup defeats the purpose of taking a backup. It is a snapshot of the database as at WHEN IT WAS BACKED UP. Expecting a backup to reflect the current data is just wrong.

              Never underestimate the power of human stupidity RAH

              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