The connection URL for JDBC I use:
jdbc:teradata://10.21.10.9/TMODE=ANSI,CHARSET=UTF8,DATABASE=DB_ABCDEF
I know that you can get the current database by querying it with "select database".
My question is:
Is there any "lightweight" way to retreive the database name specified in the JDBC connection string from the java.sql.Connection-Object WITHOUT building a statement, executing it and parsing the resultset?
Forums: