Hi Sridhar,
There is no Derby command for deleting a database. A database is simply
a directory of files--if you want to delete it, you just use operating
system commands to remove the directory. In your case, you would be
deleting the sampleDB directory.
You also asked a question about schemas, which I didn't understand.
Forgive me if I am talking past your question: You can use the CREATE
SCHEMA command to create schemas other than sys and app. If you use an
authentication mechanism to control who logs into the database and if
you turn on fine-grained SQL access checks, you can control who is able
to read and write the data in the schema which you created. For more
information, you may want to consult the security documentation in the
Derby Developer's guide:
http://db.apache.org/derby/docs/10.5/devguide/devguide-single.html#cdevcsecuree
Hope this helps,
-Rick
sridhar devatha wrote:
Hi,
I hava a database, let us call it, sampleDB.
I connect to it using ij through the below command.
connect 'jdbc:derby://localhost:1527/sampleDB;create=false';
I want to remove sampleDB. So that nobody can connect to it even using
sys schema.
This database is in different schema other than sys and app.
I am unable to find in docs and google on deleting derby database.
Can I delete it from my own schema from which I usually connect to
this database?
what is the command for deleting database?
how to know the tables / data in the database?
bye
sridhar
--
Yours Sincerely,
Devatha Sridhar