Click here to Skip to main content
13,190,404 members (50,536 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi,

While i am trying to read database name from the database connection string it returns null string. i am establish the connection to the Oracle. i got the database connection and returns the connection success.

String dbname= dbConnection.getCatalog();

from the above code, dbconnection is is database connection object. if i used to get the database name using getCatalog() method not get the dbname. any one tell me any other way to get the database name from the database connection string.

any suggestions could be appreciated.
Posted 4-Apr-12 1:15am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See here[^].
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web02 | 2.8.171016.2 | Last Updated 4 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100