Article View: aus.computers.java
Article #1146Re: JDBC - ODBC bridge.
From: Tom Davies
Date: Sun, 30 May 1999 00:00
Date: Sun, 30 May 1999 00:00
39 lines
2241 bytes
2241 bytes
{off-topic newsgroups snipped]
Michael H-N wrote:
>
> Hello.
>
> I've used the JdbcOdbcBridge class on Windows NT in my Java program to
> connect to a database. This works fine except when I transfer the program to
> a UNIX (f.ex. HP-UX) platform.
>
> The JdbcOdbcBridge doesn't exist on HP-UX? I looked in the classes.zip file
> that is shipped with the JDK and it seems that the sun/jdbc directory
> (inside the zip file) only exists on the Win NT platform?
>
> How can I connect to the ODBC database? (Without changing the drivers to
> native JDBC)
>
> Best regards
> Michael and Peter
>
> Please reply to: mhn@dannet.dk
>
> PS: There exists a JdbcOdbcBridge class In the SUN/Solaris JRE (Java Runtime
> Enviroment). Maybee this class also exists in the JRE for HP-UX and AIX?
The point isn't just whether the JDBC-ODBC bridge classes exist in the
JRE, but whether there is an ODBC driver on the Unix box for the bridge
driver to connect to. As I recall the JDBC-ODBC bridge has some native
components too.
Some other posters have indicated that ODBC drivers for various
databases do exist on Unix, but I'd ask why you are reluctant to change
to using a native driver for your database?
Which database are you using? Finding a native JDBC driver for it may
well be easier, more robust and more efficient than using the bridge and
a third-party ODBC driver on Unix.
Tom
Technical Details
Message-ID:
<37502C78.48EAA4DF@smartchat.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7iissv$2k$1@miri.tele.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,d2b95d3976c30d89 X-Google-Attributes: gid10d6db,public X-Google-Thread: 107d46,d2b95d3976c30d89 X-Google-Attributes: gid107d46,public From: Tom Davies <tom@smartchat.net.au> Subject: Re: JDBC - ODBC bridge. Date: 1999/05/30 Message-ID: <37502C78.48EAA4DF@smartchat.net.au> X-Deja-AN: 483384068 Content-Transfer-Encoding: 7bit References: <7iissv$2k$1@miri.tele.dk> To: Michael H-N <mhn@dannet.dk> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@connect.com.au X-Trace: merki.connect.com.au 927961137 16430 210.8.11.90 (29 May 1999 06:58:57 GMT) Organization: Customer of Connect.com.au Pty. Ltd. Mime-Version: 1.0 NNTP-Posting-Date: 29 May 1999 06:58:57 GMT Newsgroups: aus.computers.java,comp.lang.java.databases