Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / May 2005

Tip: Looking for answers? Try searching our database.

jdbc odbc Excel: loop thru all sheets.

Thread view: 
natG - 23 May 2005 19:06 GMT
Using an Excel (latest) Workbook on WinXp, with many sheets as the DSN,
how do I get the jdbc odbc driver to loop thru all the sheets? In other
words, I want the sheet name, which jdbc sees as a table, to be a variable.

Also, can anyone explain the phenomenon; although I have but one DSN for
one workbook, MetaData.getCatalogs returns a ResultSet with ALL xls files
in the dir. But alas, even though I have the catalog, getTables (which
should return all sheets) does not work.

Thank you all;
-nat
Lee Fesperman - 23 May 2005 21:07 GMT
> Using an Excel (latest) Workbook on WinXp, with many sheets as the DSN,
> how do I get the jdbc odbc driver to loop thru all the sheets? In other
[quoted text clipped - 4 lines]
> in the dir. But alas, even though I have the catalog, getTables (which
> should return all sheets) does not work.

This is likely a weakness in the ODBC driver that you are using rather than the
JDBC:ODBC driver. Maybe you can find a better ODBC driver for Excel ... I wouldn't know.

Signature

Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS  (http://www.firstsql.com)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.