apache > db
Apache DB Project
 
Font size:      

Retrieving the Database Connection URL

Retrieving the Database Connection URL

Derby does not have a built-in function that returns the name of the database. However, you can use DatabaseMetaData to return the connection URL of any local Connection.

/* in java */
String myURL = conn.getMetaData().getURL();
 

Previous Page
Next Page
Table of Contents
Index