Sql Anywhere 12 Driver

I would like to build a database that I can easily use with any programming language. I would like to get this done on ODBC. Does anyone there have an idea where I can get SQL anywhere 12 ODBC driver? Kindly include a little note on how to have it up. The iAnywhere Solutions 12 - Oracle ODBC driver is custom-tailored for use with iAnywhere software. This driver does not work with third-party software. If you use Oracle with MobiLink or remote data access, you must install an Oracle client on the same computer as this Oracle driver.

I originally posted this a few years ago to help people configure their Java applications to use the iAnywhere JDBC driver, which was replaced by the SQL Anywhere JDBC driver in SQL Anywhere version 12. I am reposting it here with a few minor updates, since I still refer to it occasionally and I think it is still useful.

I have heard from customers that connecting to SQL Anywhereover JDBC can be difficult at times. In my investigations of this, I have found that this is almost always due to confusion over the classname to use to register the JDBC driver, and the URL’s to use to actually connect to the database. In stepping back, I can see how people might easily get confused based on the history of the JDBC driver. Here is my attempt to clarify things by following the history of the driver, starting with SQL Anywhere version 9.

Before I go into detail on the history of the SQL Anywhere JDBC driver, here is a table which explains classpath settings, jar files required, driver name URLs and sample connection URLs.

SQL Anywhere VersionJDBC jar file to include in classpathDriver classnameConnection URL
9.0.2%ASA90%javajodbc.jarianywhere.ml.jdbcodbc.IDriverjdbc:odbc:Driver=Adaptive Server Anywhere 9.0;UID=DBA;PWD=sql;eng=demo
10.0.0%SQLANY10%javajodbc.jarianywhere.ml.jdbcodbc.jdbc3.IDriverjdbc:odbc:Driver=SQL Anywhere 10 Demo;UID=DBA;PWD=sql;eng=demo
10.0.1%SQLANY10%javajodbc.jarianywhere.ml.jdbcodbc.jdbc3.IDriverjdbc:ianywhere:Driver=SQL Anywhere 10;DSN= SQL Anywhere 10 Sample
11.0.0%SQLANY11%javajodbc.jarianywhere.ml.jdbcodbc.jdbc3.IDriverjdbc:ianywhere:Driver=SQL Anywhere 10;DSN= SQL Anywhere 11 Sample
11.0.1%SQLANY11%javasajdbc.jarsybase.jdbc.sqlanywhere.IDriverjdbc:sqlanywhere:uid=DBA;pwd=sql;eng=demo
12.0.0%SQLANY12%javasajdbc4.jarno longer required for JDBC 4.0jdbc:sqlanywhere:uid=DBA;pwd=sql;eng=demo
16.0%SQLANY16%javasajdbc4.jarno longer required for JDBC 4.0jdbc:sqlanywhere:uid=DBA;pwd=sql;eng=demo
  1. Adaptive Server Anywhere version 9.0 (aka SQL Anywhere 9.0)
    In version 9, SQL Anywhere supported JDBC 2.0 using an iAnywhere generic JDBC-ODBC bridge driver (similar to but different from the Sun JDBC/ODBC driver). The jar file is jodbc.jar, and resides in the %ASA90%java directory. To use the iAnywhere JDBC driver, you need to include the jar in your classpath. Then, you need to register it in your java app using the following code:

    Since the iAnywhere JDBC/ODBC driver is a bridge driver, to connect to your SQL Anywhere database, you need to specify a “DRIVER=” parameter along with the rest of your connect string. For example:

    or, you could use an ODBC data source like this:

  2. SQL Anywhere 10.0.0
    In version 10, we added support for JDBC 3.0. To use the version 10 iAnywhere JDBC/ODBC bridge driver, you need to again include %SQLANY10%javajodbc.jar in your classpath. However, the class name for driver registration is slightly different:

    Once registered, the connection URL was the same as in verison 9, above.

  3. SQL Anywhere 10.0.1
    After version 10 was released, we noticed that in some customer issues involving JDBC, the iAnywhere driver was not always being loaded when it was supposed to be, particularly when the Sun JDBC/ODBC bridge driver was present. It turns out that our use of “jdbc:odbc” in the connection URL was not sufficient to guarantee that the iAnywhere driver would be used during a connection. If the Sun bridge were present, it could be picked up and used instead, which lead to all sorts of unexpected behaviour. To resolve this problem, the 10.0.1 maintenance release introduced a new URL header for the iAnywhere driver, “jdbc:ianywhere”. From this point forward, the URL to register the driver was the same as with v10, but the correct URL to use when connecting to the database was as follows:

    The “jdbc:ianywhere” portion of the connection string was actually back-ported to a 9.0.1 ebf, so if you are running one of the later 9.0.1 or 9.0.2 ebfs, the above connection URL will work for you as well.

  4. SQL Anywhere version 11.0.0
    In SQL Anywhere version 11, there was no change in classname for the driver or URL for the connection string, but we did update to a newer version of the JDK. This meant we had to drop the JDBC 2.0 driver, because JDK 1.4 and newer no longer supported it. To make things easier for our customers, we kept the JDBC 2.0 class names in the version 10 JDBC 3.0 jar. They simply pointed to the JDBC 3.0 equivalents.
  5. SQL Anywhere 11.0.1
    In SQL Anywhere version 11.0.1, a new SQL Anywhere JDBC driver was introduced. No longer a generic iAnywhere JDBC driver, it is a JDBC driver specific to SQL Anywhere. This was done to make it easier (ie. less confusing) for people to use JDBC with SQL Anywhere. With the new driver, there is no need to install ODBC on the system. This wasn’t a problem for Windows, but our Linux and Unix customers often had problems with this. As an added bonus, the performance of the driver was improved slightly because we no longer have to go through the ODBC driver manager. This change involved adding 2 new files to the SQL Anywhere installation: sajdbc.jar and dbjdbc11.dll. To use the new driver, you need to include %SQLANY11%javasajdbc.jar in your classpath. Then, the driver registration is as follows:

    Then, to connect, you use the following URL:

  6. SQL Anywhere 12/16
    SQL Anywhere 12 deprecated the use of the iAnywhere JDBC/ODBC bridge driver in favor of the new SQLAnywhere driver. In addition, SQL Anywhere 12 will support JDBC 4.0 (which requires JDK 1.6 or newer). To continue to use the JDBC 3.0, users do not have to make any changes from previous versions. However, to use the JDBC 4.0 support, the new driver name is “sybase.jdbc4.sqlanywhere.IDriver”, and requires that %SQLANY12%javasajdbc4.jar be in your classpath. However, there is no need to call DriverManager.registerDriver(…) to register the driver before using it anymore. Sun has implemented automatic driver registration so that applications just need to make sure that sajdbc4.jar is in the classpath (and dbjdbc12.dll is in the path), and use the “jdbc:sqlanywhere” URL header to connect. So, to connect with SQL Anywhere 12 and JDBC 4.0, all you need is something like the following line of code:

That concludes our history lesson. Confused yet?

Contact Us
United States

Or see our complete list oflocal country numbers

Call Me NowCall Offline
SAP can call you to discuss any questions you have.
Chat NowChat Offline
Get live help and chat with an SAP representative.
<>
Enable secure, reliable data management for servers where no DBA is available and synchronization for tens of thousands of mobile devices, Internet of Things (IoT) systems, and remote environments.

SAP SQL Anywhere

Run your business from anywhere with relational database management system (RDBMS) solutions from SAP SQL Anywhere. Capture, manage, and synchronize data in real-world conditions – even without connectivity or IT support.

  • On-premise and cloud deployment
  • Secure synchronization with improved encryption
  • Embedded data management in critical applications
  • Streamlined collection and analysis of IoT data
PreviousNext

Optimize data management

Deliver critical business data to remote offices and mobile devices for more accurate, real-time decision-making at the front lines of your business.

Empower greater mobility

Run mobile applications reliably and efficiently without on-site technical staff, giving mobile and remote workers an always on experience, even when they are offline.

Simplify service

Streamline data maintenance tasks with built-in self-managing features that help users resolve issues quickly and efficiently.

PreviousNext

Strong encryption

Protect and secure your data, even during data transmission and exchange, with powerful encryption features.

Data synchronization

Replicate transactions between the enterprise and tens of thousands of remote devices, executing complex, scalable operations consistently with no data loss.

Instant insight

Transport insights anytime, anywhere from SAP HANA to satellite locations, giving mobile and remote users access to deep intelligence.

PreviousSqlNext

SAP SQL Anywhere Cockpit

Gain a current view of the availability, capacity, and performance of your database server.

Profiler tool

Tune and troubleshoot your database applications with this development tool.

OData support

Configure SAP SQL Anywhere to act as an OData server.

PreviousNext

Data Security

Focus on your business and customer relationships, while knowing that your data is safe and reliable. With a proactive, predictive approach, SAP helps ensure compliance and data security in the cloud and within an on-premise data center.

Data Privacy and Protection

SAP protects the rights of employees, applicants, customers, suppliers, partners, and all other persons by preserving data ownership, protection, and privacy throughout the processing and use of information.

Compliance

Driver

Get the assurance you need to know that our cloud offerings meet the latest compliance and security standards. We regularly check compliance through external reviews and audits and follow one common framework, including data security and privacy regulations, worldwide.

Evolve your business with SAP Digital Business Services – your trusted adviser for digital transformation strategy and execution.
PreviousNext

Simplify and accelerate your digital transformation

Sql Anywhere 12 Driver Download

Secure critical business processes on your path to innovation and digital transformation with holistic, end-to-end service support that reflects over 40 years of unparalleled knowledge, experience, and innovation.

Transform your business with unparalleled service support

Close the gap between your digital transformation strategy and execution with innovation discovery, digital strategy, and business transformation services from a trusted adviser that knows SAP software best.

Sql Anywhere 16 Odbc Driver

PreviousNext

Sql Anywhere 12 32 Bit Odbc Driver Download

Affordable relational database management system

Learn how ND Software provides ERP applications that meet the special needs of eldercare facilities simply and cost-effectively.

Sql Anywhere 12 Odbc Driver 32 Bit

Looking for more data management products to meet your business needs?