jConnect Driver Connection Strings

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", "<user_id>", "<password>");

The URL is composed in the following way:

jdbc:sybase:Tds:host:port

The individual components are:

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

If you are using the SAP Sybase IQ personal server, make sure to include the TCP/IP support option when starting the server.