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. Database commits being reversed

Database commits being reversed

Scheduled Pinned Locked Moved Database
databasecsshelptutorial
3 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.
  • J Offline
    J Offline
    jonathan15
    wrote on last edited by
    #1

    We have a VB6 application that uses an Access DB. One of our customers has reported that edits to the database are not there when they go back into the record. The structure is something like: The function is to add reciepts to a customers booking. Edit record (create reciept record) Commit changes (ado commit to reciept recordset) Call routine to update log in another database (log of changes to booking including receipts) Print Crystal report with reciept details. Close reciept form refresh booking form with new balance. Everything looks OK and the reciept prints off fine (data must be in tables correctly for Crystal report to pick it up). the problem is over the past week on 4 occasions the end of day reports which list cash taken are less than the actual cash taken (reciepts are missing from the DB). I have looked at one example and although i have the printed reciept there is no evidence of it in either the main DB or the log DB. The commit has been completly reversed out. Any ideas? Jon

    M 1 Reply Last reply
    0
    • J jonathan15

      We have a VB6 application that uses an Access DB. One of our customers has reported that edits to the database are not there when they go back into the record. The structure is something like: The function is to add reciepts to a customers booking. Edit record (create reciept record) Commit changes (ado commit to reciept recordset) Call routine to update log in another database (log of changes to booking including receipts) Print Crystal report with reciept details. Close reciept form refresh booking form with new balance. Everything looks OK and the reciept prints off fine (data must be in tables correctly for Crystal report to pick it up). the problem is over the past week on 4 occasions the end of day reports which list cash taken are less than the actual cash taken (reciepts are missing from the DB). I have looked at one example and although i have the printed reciept there is no evidence of it in either the main DB or the log DB. The commit has been completly reversed out. Any ideas? Jon

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      The Jet database engine is not capable of recovering from bad writes. If data is missing, it's usually that some kind of hardware problem has occurred: power failure, disk errors, memory errors, etc. I would check the file server holding the MDB file very thoroughly. As I said, Jet is not capable of recovering from these errors. In the long term I would suggest moving to MSDE (SQL Server 2000 Desktop Engine) or, when released, SQL Server 2005 Express Edition which both have these capabilities. Stability. What an interesting concept. -- Chris Maunder

      J 1 Reply Last reply
      0
      • M Mike Dimmick

        The Jet database engine is not capable of recovering from bad writes. If data is missing, it's usually that some kind of hardware problem has occurred: power failure, disk errors, memory errors, etc. I would check the file server holding the MDB file very thoroughly. As I said, Jet is not capable of recovering from these errors. In the long term I would suggest moving to MSDE (SQL Server 2000 Desktop Engine) or, when released, SQL Server 2005 Express Edition which both have these capabilities. Stability. What an interesting concept. -- Chris Maunder

        J Offline
        J Offline
        jonathan15
        wrote on last edited by
        #3

        It is not just that the data is missing it is that it has been removed. It was in the tables (even if it was only for about 10 seconds) but must have dissapeared quite soon after that. Would the hardware problems cause that? Yes,MSDE or SQL server would be better (especially given that some ofour new customers are quite large organisations) and i keep pushing that we look at migrating the code, but in this case it would be a big job. The app uses a mix of DAO and ADO and a lot of dynamic SQL, the boss just keeps saying 'maybe we'll look at it in the future', ie never. Jon

        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