Create an ODBC Connection With MS Access
In this article I explain how to create an ODBC connection to a MS Access Database.
Open DataBase Connectivity (ODBC) refers to a software API method for using a database management system. A connection with the ODBC API can be established using several popular programming languages including PHP, Perl, Python, .Net etc.
How to create an ODBC connection using Microsoft Access
The following procedure describes how to create an ODBC connection to a Microsoft Access Database.
Open the Administrative tools icon in your Control Panel.
Then double-click the Data Source (ODBC) icon in it.
Choose the system DSN tab.
Select the "Microsoft Access Driver" and click on "Finish".
Click "Select" to locate the database.
Now, give the database a Data Source Name (DSN) and click on the "OK" Button.
Now let's determine if the connection was created.
die('Could not connect: ' . mysql_error());
echo "Connection has been established.";