Example 2: Setting up a connection via the Sybase JDBC driver

Assume that:

Take the following steps to set up a connection which connects JReport Designer to a database via the Sybase JDBC driver:

  1. Start JReport Designer and open the catalog.
  2. In the Data tab of the Catalog Browser, right-click the node of the default data source and select Add JDBC Connection from the shortcut menu.
  3. In the Get JDBC Connection Information dialog, enter the JDBC driver class name com.sybase.jdbc.SybDriver into the Driver text field.
  4. In the URL text field, specify the URL in the format jdbc:sybase:Tds:<hostname>:<port>/<SID>. In this example, enter jdbc:sybase:Tds:SybServer:5000/pubs2.
  5. Input the user name sa and password 123456 respectively.
  6. Click OK to set up the connection.