How to Execute SQL Script File in Java?
There is great way of executing SQL scripts from Java without reading them yourself as long as you don’t mind having a dependency on Ant. In my opinion such a dependency is very well justified in your case. Here is sample code, where SQLExec class lives in ant.jar: private void executeSql(String sqlFilePath) { final class … Read more