Skip to main content

Running a SQL script from Java in Java DB

Posted by davidvc on May 15, 2007 at 10:21 AM PDT

Most databases provide a command-line tool to run SQL that you've put in a file. But sometimes you want to do this straight from Java.

A recent
thread on the derby-user list
included an email from Dan Debrunner about a
Java API that exists in Java DB
that lets you do this.
Something to keep in your back pocket in case you need it.