Thanks Mr.Rick,
I tried the following,
DriverManager.getConnection("jdbc:derby:C:/MyDB;user=un;password=pw;shutdown=true");
It throws, Database 'C:/MyDB' not found.
If i remove the "shutdown=true", it works fine. Except the connection is not
getting closed.
And my schema is APP. As per documents "only the database owner can shut
down the database."
Is that any thing i missed?
Thanks in advance.
Sivagururaja.
Rick Hillegas-2 wrote:
>
> Hi Sivaguraraja,
>
> From your description, it sounds as though you have successfully closed
> the ResultSet, Statement, and Connection. However, the database is still
> booted. The database does not automatically shut down when the last
> Connection closes. Instead, you need to shut down the database
> explicitly. You can find the instructions for doing that here:
> http://db.apache.org/derby/docs/dev/devguide/tdevdvlp40464.html
>
> Hope this helps,
> -Rick
>
>
--
View this message in context:
http://www.nabble.com/Close-Derby-DB-tp24372778p24375904.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.