Setting up the database
This lesson demonstrates how to set up a database connection to the sample databases included in the product.
To set up a database connection
- Switch to the Crystal Reports perspective.
- In the Database Explorer pane, right-click Connections and click New Connection.
The New Connection wizard opens.
- In the Connection identification section, select the “Use default naming convention” check box.
- In the Select a database manager list, expand the Derby node and select 10.1.
- In the JDBC driver list, select Derby Embedded JDBC Driver.
- In the Connection URL details section:
- In the Database location field, type classpath:/Xtreme.
- Select the “Create the database if required” check box and clear the “Upgrade the database to the current version” check box.
- Beside the “Class location” text box, Click Browse. Browse to the derby.jar and xtreme.jar files. For example, you may have installed them in the eclipse\plugins\com.businessobjects.crystalreports.samples_1.0.0.v500\SampleDatabases folder.
- In the User information section:
- Select bobj as the User ID.
- In the Password field, type bobj.
- Click Test Connection.
- Click Next to proceed to the Filter page, and clear the disable filter check box.
- Select the Selection option, select the APP check box and then click Finish.