For given Connection
instance how do I find out url that the Connection
uses to connect the database ? Is it somewhere in Properties
returned by Connection.getClientInfo()
method?
If there you need me to provide clearer description all comments are welcome. Thank you
Connection
has the getMetaData()
to return DatabaseMetaData
. DatabaseMetaData
has the getURL()
to return the URL for this DBMS.