sivagururaja wrote:
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?
You actually have to boot the database before you shut it down, so prior
to your shutdown, you would need to first connect with:
DriverManager.getConnection("jdbc:derby:C:/MyDB;user=un;password=pw");
then you should be able to shut down with the command above.
Kathey