Two JDBC drivers are provided for Sybase IQ:
jConnect This driver is a 100% pure Java driver. It communicates with Sybase IQ using the TDS client/server protocol.
For jConnect documentation, see http://sybooks.sybase.com/jc.html.
iAnywhere JDBC driver This driver communicates with Sybase IQ using the Command Sequence client/server protocol. Its behavior is consistent with ODBC, embedded SQL, and OLE DB applications.
When choosing which driver to use, you may want to consider the following factors:
Features Both drivers are JDK 2 compliant. The iAnywhere JDBC driver provides fully-scrollable cursors, which are not available in jConnect.
Pure Java The jConnect driver is a pure Java solution. The iAnywhere JDBC driver requires the Sybase IQ or Adaptive Server Anywhere ODBC driver and is not a pure Java solution.
Performance The iAnywhere JDBC driver provides better performance for most purposes than the jConnect driver.
Compatibility The TDS protocol used by the jConnect driver is shared with Adaptive Server Enterprise. Some aspects of the driver's behavior are governed by this protocol, and are configured to be compatible with Adaptive Server Enterprise.
Both drivers are available on Windows 95/98/Me and Windows NT/2000/2003/XP, as well as supported UNIX and Linux operating systems.
Consider the following when running Java applications:
An issue exists when connecting to a Sybase IQ 12.5 server through DBISQL Java using the iAnywhere JDBC driver. For details, see “Data truncation or data conversion error” in Sybase IQ Troubleshooting and Recovery Guide.
Java applications running in Sybase IQ run slower than when run outside in a Sun Java Virtual Machine (JVM). Despite this limitation, Sybase recommends that you tune your applications by increasing the available memory for IQ JVM use with the database options JAVA_HEAP_SIZE and JAVA_NAMESPACE_SIZE. See Chapter 2, “Database Options,” in the Sybase IQ Reference Manual.