MS Access via JDBC

February 2, 2007 | In: General

We recently made the move from an IIS Windows web server to an Apache *nix based web server as part of our efforts to consolidate our library’s server infrastructure. And for reasons I won’t expound upon, we had one MS Access DSN that didn’t get migrated to MSSQL and that needed to be used still. Since ColdFusion uses a Windows only driver for MS Access, I needed to figure out a way around this. I found a couple of JDBC drivers for Access (Easysoft’s JDBC-ODBC Bridge and HXTT’s Access Pure Java JDBC Drivers), but these seemed to be a bit on the expensive side for the short amount of time that I’d need to keep Access in production.

I did notice on Easysoft’s website that they were using the JdbcOdbc bridge, so after a little bit more digging, I found the syntax to use configure ColdFusion to use MS Access through the JdbcOdbc Bridge; the JDBC URL is

jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=/path/to/datasource.mdb;DriverID22;

and the Driver Class

sun.jdbc.odbc.JdbcOdbcDriver

For the very basic inserting of data from a seldom-used web form into a single table, this band aid fix has been doing pretty good!



2 Responses to MS Access via JDBC

Adam Beaulne

March 17th, 2009 at 6:28 am

Hi, I just tried using your JDBC URL,a nd Driver Class, and i’m still having difficulty.

Im using Coldfusion 8, on linux, and I cant see to make it work with a mdb,.

Franklin

August 30th, 2009 at 5:35 pm

Can you please add more info for accessing mdb using coldfusion 8 under linux (ubunutu9.04)

Thanks!

Comment Form