× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



JDBC API Tutorial and Reference, Third Edition, by Fisher, Ellis and Bruce has a chapter on Database Metadata. (If I ever get time I plan to read more of this book and do some experimentation with Java.)

I'm not an expert, but they have some Java sample code (con is a Connection object):

DatabaseMetaData dbmd = con.getMetaData(0;
ResultSet rs = dbmd.getSchemas();
while (rs.next());
String s = rs.getString(1);
System.out.println("Schema name = " + s);
}

It looks like there is a boatload of information in the metadata object.

I picked up a copy of the book a couple of years ago used (read cheap) on e-bay. You might find it useful.

Sam


On 8/29/2013 8:34 PM, James H. H. Lampert wrote:
I haven't even started looking, but would anybody happen to know where I
need to look, for how one gets a list of databases/schemas/tables
available at any given JDBC URL?

And are the relevant methods already exposed in JDBCR4?

(I'm beginning to think that by the time I'm done with extensions to
JDBCR4, it will be more like JDBCR4000.)

--
JHHL

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.