Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007

    Unanswered: Handle Exceptions of database importing from dump

    I'm restoring my MySQL database from java code.
    I use Process for running a batch file and i need to roleback if there were any exceptions.
    How can I track the exceptions?
    Is there any way doing it with jdbc "Statements"?

  2. #2
    Join Date
    Mar 2007
    If you're not going to use stored procedures, then use transactions, savepoints, and rollbacks. It'll probably involve lots of Java if test cases though to see if the statements have executed properly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts