JDBC API - To get the current catalog/schema of the database
697330Jul 6 2010 — edited Oct 15 2014Is there any JDBC API to get the current catalog/schema of the database. The solution needs to be generic so that it can be applied across databases..
For example,
- for Oracle i need to get the current schema of the session
- for SQL Server i need to get the current catalog and schema for the session
....
...