Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere JDBC API » Using the jConnect JDBC driver

Loading the jConnect driver Next Page

Supplying a URL to the driver

To connect to a database via jConnect, you need to supply a URL for the database. For example:

Connection con = DriverManager.getConnection(
      "jdbc:sybase:Tds:localhost:2638", "DBA", "sql");

The URL is composed in the following way:


The individual components are:

The connection string must be less than 253 characters in length.

Specifying a database on a server
Database options set for jConnect connections