DBA > Job Interview Questions > DERBY Java Database FAQs

How to Use the databaseName Attribute ?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How to Use the databaseName Attribute ?

jdbc:derby:;databaseName=databaseName
You can access read-only databases in jar or zip files by specifying jar as the subsubprotocol, like this:

jdbc:derby:jar:(pathToArchive)databasePathWithinArchive

Or, if the jar or zip file has been included in the class path, like this:
jdbc:derby:/databasePathWithinArchive

(Continued on next question...)

Other Job Interview Questions