File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Retrive Data Base names from Table Space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Retrive Data Base names from Table Space" Watch "Retrive Data Base names from Table Space" New topic
Author

Retrive Data Base names from Table Space

raktim banerjee
Greenhorn

Joined: Feb 13, 2011
Posts: 18
Hello Sir!

I am trying to show all the Data Base names in a particule user's account. Is it possible to retrive Table Space information? If possible, then please help me out. I am using MYSQL and Servlet.
Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 77


Hi Raktim,

You can use con.getMetaData( ). It returns Database metadata.
[con is the connection obj.].

Thanks and Regards
Souvik


Thanks and Regards, Souvik
SCJP, SCWCD, OCEJWSD
Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 77

Raktim,

Please refer to the below code:

raktim banerjee
Greenhorn

Joined: Feb 13, 2011
Posts: 18
I do not want the names of the tables in a particular Database.

I want to see all the Database names under a particular user name.
raktim banerjee
Greenhorn

Joined: Feb 13, 2011
Posts: 18
I found the solution:
 
Don't get me started about those stupid light bulbs.
 
subject: Retrive Data Base names from Table Space
 
Similar Threads
How to store image in mysql database
how to retrive data from data base put in HTML PAGE as report
Populate the data into an ArrayList
Struts
retrieve table name