How do I connect A Reporting Tool (ART) to Microsoft Access?
Use the JDBC-Access Gateway to connect A Reporting Tool (ART) to a Microsoft Access database.
We tested ART with the JDBC-Access Gateway using:
- ART version 2.5.2.
- Apache Tomcat version 7.0.42
- The 32-bit Java Runtime Environment (JRE) included with Java Development Kit (JDK) 1.7.0_40
- Windows 2008 R2 64-bit
The following instructions assume that:
- You've already installed a 32-bit JRE.
- Tomcat is installed in its default location,
drive:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0. - You've copied your ART WAR file,
art.war, to thedrive:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webappsfolder.
These instructions show how to connect ART to Microsoft Access:
- Download the JDBC-Access Gateway.
- Install and license the JDBC-Access Gateway on the machine where ART is installed.
Install the JDBC-Access Gateway into the default folder.
For installation instructions, refer to the JDBC-Access Gateway documentation.
- Copy
esmdb.jarfromdrive:\Program Files\Easysoft Limited\Easysoft JDBC-Access Gateway\32-Bits\Libstodrive:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib. - In the Windows Taskbar search box, search for "environment variables." Choose Environment Variables. Double-click Path in the System variables list. Make sure that the
Pathcontains:drive:\Program Files\Easysoft Limited\Easysoft JDBC-Access Gateway\32-Bits\Libs\
Make sure that this folder appears before
C:\Program Files\Easysoft Limited\Easysoft JDBC-Access Gateway\Libs\in the Path. Otherwise, you will get an "Architecture mismatch" mismatch error when you attempt to connect to Microsoft Access. - Stop and start the Apache Tomcat server.
- Use a Web browser to connect to ART. For example:
http://localhost:8080/art/
- Once you have logged into ART, go into the Data Sources section and add a new data source:
Field Value Datasource Name EasysoftDatabase Type OtherJDBC Driver easysoft.sql.esMdbDriverJDBC URL jdbc:easysoft:mdb?DBQ=databasewhere
databaseis the MDB file that you want to connect to. Include the path, for example,C:/Users/Public/Northwind.mdb. Note that the forward slashes (/) in the path are deliberate, you need to use these instead of backslashes (\).When you choose OK to save the data source, ART tests the connection. If the connection succeeds you get this output:
Registering driver easysoft.sql.esMdbDriver ... ...OK Testing connection ... ...OK
- Choose Finish, and then navigate to the Admin Console.
- Choose Queries, and then choose Create a new query:
Field Value Name Easysoft TestStatus ActiveShort Description First Easysoft TestDescription Testing the JDBC-Access Gateway with ART and Microsoft Access.Contact Person myperson@mydomainType TabularDatasource EasysoftUses Rules NoShow Parameters In Output NoDisplay Resultset 0Source (SQL) SELECT * FROM SuppliersReplace
Supplierswith the name of a table in your database. - Choose Save Changes, and then, to test the query, choose Execute.
If the query succeeds, your Access data will be displayed in a new browser window.