Chapter 1. Quick Start
Index:
HXTT Access provides a type 4 JDBC driver for Microsoft Access (MS Access) version from 2.0, 95, 97, 2000, XP, 2002, to 2003. It supports JDBC1.2, JDBC2.0, and JDBC3.0. It supports Personal Java, JDK1.0.X, JDK1.1.X, JDK1.2.X, JDK1.3.X, JDK1.4.X and JDK1.5.X. It supports JBuilder's Database Pilot, Oracle's JVM, JDeveloper 10G, Dreamweaver UltraDev, Dreamweaver ColdFusion, ObJectRelationalBridge, DBVisualizer, Sunopsis, MySQL Migration Toolkit, Tomcat, vqServer, Hibernate, SQuirreL SQL Client, and DbEdit Database Utilites for Eclipse Platform. It supports transaction, XOPEN SQLState, RMI, Jini, JNDI, and serialization. It supports { UNION | INTERSECT | EXCEPT | MINUS } [ ALL ] query , INNER JOIN, FULL JOIN, LEFT JOIN, RIGHT JOIN, NATURAL JOIN, CROSS JOIN, self join, and subquery which includes single-row subquery, multirow subquery, multiple-column subquery, inline views, and correlated subquery. The current version of the HXTT Access packages are available here:
First, you need to download JDK 1.3.X, 1.4.X, or 1.5.X from www.javasoft.com if you use Access JDBC 3.0 package(Access_JDBC30.jar). You can download JDK1.2.X too if you use Access JDBC 2.0 package(Access_JDBC20.jar). You can download JDK1.1.X too if you use Access JDBC 1.2 package(Access_JDBC12.jar).
Secondly, please add Access_JDBC30.jar, Access_JDBC20.jar or Access_JDBC12.jar to your Java class path, for instance, "SET CLASSPATH=c:\javalib\Access_JDBC20.jar;%classpath%". You can also use "java -classpath c:\javalib\Access_JDBC20.jar yourAccessclass" to run your class. More information about classpath, please read the "Setting the Classpath" topic in file:///yourdriver|/jdk1.2/docs/tooldocs/tools.html . You can use "java -classpath c:\javalib\Access_JDBC20.jar yourAccessclass" too.
Thirdly, you can use 'Class.forName("com.hxtt.sql.access.AccessDriver").newInstance();' or Class.forName("com.hxtt.sql.access.AccessDriver");' to load this driver.
Fourth, if you have used other JDBC driver, you only need to know the correct
URL format for DriverManager.getConnection(url,"",""); You
can find the Access URL format below. If you were a Java novice, please
read also other Java examples code in Access_JDBC30demo.zip, Access_JDBC20demo.zip
or Access_JDBC12demo.zip.
Access URL format:
Embedded: jdbc:Access:[//]/[DatabasePath][?prop1=value1[&prop2=value2]] (You can omit that "//" characters sometimes) For example: "jdbc:Access:/." "jdbc:Access:/c:/data" "jdbc:Access:////usr/data" for unix or linux: "jdbc:Access:/./data" "jdbc:Access:/./data/mydata.mdb" Remote Access: jdbc:Access://host:port/[DatabasePath] For example: "jdbc:Access://domain.com:3099/c:/data" if one AccessServer is run on the 3099 port of domain.com jdbc:Access://host:port/[DatabaseFilePath] For example: "jdbc:Access://domain.com:3099/c:/data/mydata.mdb" if one AccessServer is run on the 3099 port of domain.com
Access supports SQL Minimum Grammar, which is a subset of the Entry level syntax of SQL-92. It supports { UNION | INTERSECT | EXCEPT | MINUS } [ ALL ] query , INNER JOIN, FULL JOIN, LEFT JOIN, RIGHT JOIN, NATURAL JOIN, CROSS JOIN, self join, and subquery which includes single-row subquery, multirow subquery, multiple-column subquery, inline views, and correlated subquery. The major syntax is listed at here.
Access driver will use index to speed up the query which contains some indexed expressions. Access driver doesn't index all deleted records, and supports utilizing index file for LIKE, BETWEEN, IN, and some OR operations.