DBA > Job Interview Questions > DERBY Java Database FAQs

When Path Is Ambiguous with Databases in File Sy

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

(Continued from previous question...)

When Path Is Ambiguous with Databases in File System?

Use the basic connection URL syntax only if the database path specified does not also point to a Derby database in the file system. If this is the case, the connection attempt might fail or connect to the wrong database. Use the form of the syntax with the subsubprotocol to distinguish between the databases.

For example:
jdbc:derby:classpath:/products/boiledfood

(Continued on next question...)

Other Job Interview Questions