Database Toolbox | ![]() ![]() |
Setting Up a Data Source for ODBC Drivers
Follow this procedure to set up a data source for a PC running Windows whose database resides on that PC or on another system to which the PC is networked via ODBC drivers. This procedure uses as an example, the Microsoft ODBC driver Version 4.00 and the U.S. English version of Microsoft Access 2000 for Windows 2000. If you have a different configuration, you may have to modify the instructions.
If you have Microsoft Access installed and want to use many of the examples in this document as written, set up these two data sources:
dbtoolboxdemo
data source--Uses the tutorial
database provided with the Database Toolbox in $matlabroot\toolbox\database\dbdemos
. When you first open the tutorial database (tutorial.mdb
) in Access 2000, convert it to the Access 2000 format and assign it a different name, for example, northwind.mdb
.
SampleDB
data source--Uses the Microsoft Access sample database called northwind
. If you do not already have the sample database on your system, you can download it from the Microsoft Web site downloads page. It is part of the Access 2000 downloads and is the Northwind Traders sample database. When you first open the Northwind database (Nwind.mdb
) in Access 2000, convert it to the Access 2000 format and save it. You may want to make a copy of the original unconverted tutorial
database.
dbtoolboxdemo
as the data source name.
Note that for some databases, the ODBC Setup dialog box requires you to provide additional information.
dbtoolboxdemo
data source, select tutorial.mdb
in
$matlabroot\toolbox\database\dbdemos
.
If your database resides on another system to which your PC is connected, you must first click Network. The Map Network Drive dialog box appears. Find and select the directory containing the database you want to use, and then click Finish. The Map Network Drive dialog box closes.
northwind
.
SampleDB
as the data source name.
northwind.mdb
. See "SampleDB
data source" in Setting Up a Data Source for ODBC Drivers for instructions to obtain the data from Microsoft.
dbtoolboxdemo
and SampleDB
data sources.
![]() | Setting Up a Data Source | Setting Up a Data Source for JDBC Drivers | ![]() |