Re: Microsoft Access DB Driver for JDBC
- From: Lee Fesperman <firstsql@xxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 21:12:39 GMT
James Croft wrote:
>
> Lee Fesperman wrote:
> > Jsnail wrote:
> >
> >>Does any body know of any freeware ms access drivers for jdbc that
> >>allow direct access to an ms access db. The jdbc odbc bridge works but
> >>i dont know how to dynamically add odbc data connections in windows
> >>(Some code to do this would also help).
> >
> > There is no JDBC driver for Access.
>
> The JDBC-ODBC bridge is intended (dunno, never used it although the
> poster says it works) to allow Java apps to talk to any ODBC datasource.
Well, the OP mentioned the JDBC-ODBC bridge, so it was obvious that he was looking for a
'native' JDBC driver for Access.
> >
> > The only way to add ODBC datasources in Java is to use JNI.
> >
>
> Security issues aside wouldn't it be possible to create a temporary .reg
> file with the changes needed and call 'regedit myupdate.reg' using Javas
> Runtime.exec() function?
>
> As I said before I'm fairly new to Java so have no idea if its security
> features will block this. If it worked it'd be easier than JNI.
Java security might block exec() but doesn't care what you execute with it.
> > You need to get a better db.
> >
>
> As ghastly as Access is to real men who drink real beer and use real
> databases there may be a perfectly valid reason for using it, eg. the
> boss/client demanding that it be used.
I'll leave it to the OP to clarify that, but I was giving very good advice in general
.... and not just because of JDBC-ODBC problems.
--
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
.
- References:
- Microsoft Access DB Driver for JDBC
- From: Jsnail
- Re: Microsoft Access DB Driver for JDBC
- From: Lee Fesperman
- Re: Microsoft Access DB Driver for JDBC
- From: James Croft
- Microsoft Access DB Driver for JDBC
- Prev by Date: java with HL7 opportunity
- Next by Date: Re: Microsoft Access DB Driver for JDBC
- Previous by thread: Re: Microsoft Access DB Driver for JDBC
- Next by thread: Re: Microsoft Access DB Driver for JDBC
- Index(es):
Relevant Pages
|