Home » Java Basics » 10 - Java - Database and XML Input
Screen Shot 10c: The System DSN tab
Screen Shot 10d: Select the ODBC Driver
Screen Shot 10e: Enter values for your Datasource
10
Database Set Up
How the database is set up
- First, let us set up an ODBC data source for our database that the JDBC datasource can use.
- Go to the control panel and Double click 'administrative tools'.
- Double click on ODBC data sources.
- Move to the 'system dsn' tab by clicking on it. Click on the 'add' button.
Screen Shot 10c: The System DSN tab
- Select 'Microsoft Access Driver' and click on 'finish'.
Screen Shot 10d: Select the ODBC Driver
- In the next pop up, enter 'fruits' next to 'name' and a short description next to 'description'.
- Click on 'select' in the database box. Now, select the filename and directory that corresponds to the path on your computer to fruits.mdb. Make sure the fruits database is closed when you do this. Hit OK. Our data source is now ready.
Screen Shot 10e: Enter values for your Datasource