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 / July 2006

Tip: Looking for answers? Try searching our database.

JDBC and Open Office..

Thread view: 
Shane  Trahan - 20 Jul 2006 13:30 GMT
Does anyone know what drivers to use for Open Office ? I am using MAC
OSX and do not have ODBC...

Class.forName("OpenOffice.Driver");
           String url = "jdbc:OpenOfficexxxxxxxx";
           Connection con = DriverManager.getConnection(url,
"USERNAME", "PASSWORD");

Thanx
Shane
Thomas Kellerer - 20 Jul 2006 13:33 GMT
On 20.07.2006 14:30 Shane Trahan wrote:
> Does anyone know what drivers to use for Open Office ? I am using MAC
> OSX and do not have ODBC...
[quoted text clipped - 3 lines]
>             Connection con = DriverManager.getConnection(url,
> "USERNAME", "PASSWORD");

The built-in database for OOo is HSQL (www.hsqldb.org), so that would be
the driver to use. The problem is that the OOo file is not the database
as expected by HSQL. The OOo file is actually a ZIP file that contains
the HSQL database. So unless you unpack the database files from the OOo
archive, I don't think you can connect to the database with "plain" JDBC

Cheers
Thomas

Signature

It's not a RootKit - it's a Sony

IchBin - 20 Jul 2006 20:29 GMT
> On 20.07.2006 14:30 Shane Trahan wrote:
>> Does anyone know what drivers to use for Open Office ? I am using MAC
[quoted text clipped - 13 lines]
> Cheers
> Thomas

Yes, the driver class is: "org.hsqldb.jdbcDriver"

In memory url:  jdbc:hsqldb:mem:.
Standalone url: jdbc:hsqldb:file:«database/path?»
Server url:     jdbc:hsqldb:hsql://localhost/

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)


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.