The moose likes Java in General and the fly likes Execute SQL Scripts with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Execute SQL Scripts with Java

Cloey Tan
Ranch Hand

Joined: Feb 03, 2009
Posts: 60
I have previously posted this topic in the JDBC section, but not sure whether it's appropriate, so think i might as well post it here, hopefuly can get more comments.

As part of eliminating the need to run the sql scripts manually in order to update existing database, im going to develop a functionality which can take the scripts from certain classes, and run the scripts from there, sometimes the amount of sql scripts may get huge, and im concerning the performace regarding this action. So i need some consultation, help, guidelines from javaranch forum here before i start off with this. What are some of the major things that need to be taken into consideration when it comes to this? And if halfway running the script certain issues occur, what measures have to take. Your help is very much appreciated!
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Hi Cloey,

We prefer to have OneThreadPerQuestion

Please continue in the JDBC forum (if you like you can reply to your post there and ask if it can be moved). Locking this thread.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Execute SQL Scripts with Java
 
Similar Threads
I am seeking talented coders and graphic artists (part time - online)
sqlplus
running sql scripts
Insert into database with Java
SQL scripts for data migration