Previous Page Next Page
Example 4: Via DB2
Assume that:
Take the following steps to set up a connection which connects JReport Designer to a database via DB2:
- Start JReport Designer and open the catalog.
- In the Catalog Manager, right-click the node of the default data source and select New JDBC Connection from the shortcut menu. Click JDBC in the Select Connection Type dialog.
- In the Get JDBC Connection Information dialog, enter the JDBC driver class name com.ibm.db2.jcc.DB2Driver in the Driver text field.
- In the URL text field, specify the URL as jdbc:db2://qad01.jinfonet.com.cn:50000/JRDemo.
- Input the user name jrDesign and password Test1234 respectively.

- Click OK to set up the connection.
Previous Page Next Page