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 / C++ / MFC
  4. XML and ODBC

XML and ODBC

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasecomxml
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.
  • T Offline
    T Offline
    Tony Fontenot
    wrote on last edited by
    #1

    I am trying to figure out what is the best way to store old records in a database. Basically, I am trying to write some kind of archive function that will do record maintenance to keep the database relativly small. So if I have a table of purchases and I want to keep only the records that are newer than 90 days and move the older ones to some archive file. My question is, what is the best way to store the archived records? XML? another database? some other method? I am leaning toward XML but I really don't know enough about it. So on to my next question. Does anyone have a class that will take a recordset using ODBC and write an XML file? Thanks in advance. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************

    G 1 Reply Last reply
    0
    • T Tony Fontenot

      I am trying to figure out what is the best way to store old records in a database. Basically, I am trying to write some kind of archive function that will do record maintenance to keep the database relativly small. So if I have a table of purchases and I want to keep only the records that are newer than 90 days and move the older ones to some archive file. My question is, what is the best way to store the archived records? XML? another database? some other method? I am leaning toward XML but I really don't know enough about it. So on to my next question. Does anyone have a class that will take a recordset using ODBC and write an XML file? Thanks in advance. *********************** Tony Fontenot Recreational Solutions tony@recsolutions.com ***********************

      G Offline
      G Offline
      Gerald Schwab
      wrote on last edited by
      #2

      Personally, I would just go with another database. A database is obviously more robust than XML. Transactions, automatic backups, etc. XML is just a plain text file. Backups and transactions would have to be handled manually.

      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