0% found this document useful (0 votes)
26 views

Creation of Data Source

This document provides steps to map a data source in Open Database Connectivity (ODBC) on a Windows system to allow a Java program to connect to a Microsoft Access database. The steps include: 1) opening the ODBC administrator from the control panel, 2) selecting whether to create a user or system data source, 3) providing a data source name when prompted, 4) selecting the Microsoft Access driver, 5) browsing to and selecting the .mdb database file, and 6) clicking OK to complete the data source mapping.

Uploaded by

Sriharsha Gowds
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Creation of Data Source

This document provides steps to map a data source in Open Database Connectivity (ODBC) on a Windows system to allow a Java program to connect to a Microsoft Access database. The steps include: 1) opening the ODBC administrator from the control panel, 2) selecting whether to create a user or system data source, 3) providing a data source name when prompted, 4) selecting the Microsoft Access driver, 5) browsing to and selecting the .mdb database file, and 6) clicking OK to complete the data source mapping.

Uploaded by

Sriharsha Gowds
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Ur project Dsnname : DLF

Creation of Data Source:

Source Code:

Connection con=null;
Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);
con=DriverManager.getConnection(“Jdbc:odbc:DATASOURCENAME”);

Mapping DataSource in OpenDatabaseConnectivity

1. StartControl PanelAdministrative ToolsData Sources


(ODBC)(Dialog box appears)

2. UserDSN or SystemDSN (Select anyone)


3. Click Add Button
4. Dialog box named Create New Data Source appears
5. Select Driver Name (Microsoft Access Driver [*.mdb] )

6. click finish.
7. Dialog box named ODBC Microsoft Access setup appears
8. Type “DATASOURCENAME” in Data Source Name Text Box.

9. Click Select Button.


10. Dialog box named Select Database appears.

11. Select Drives for C or D or E or F.


12. Select directory for the filename databasefilename.mdb.(find
database ms access file location)
13. File Name automatically appears in the text area.
14. Click OK button
15. Now DataSource source Mapping process was completed.

You might also like