MATLAB: Do I receive a “failed connection” error when trying to connect to a database with Database Toolbox 3.0.1 (R14sp1)

connectdatabaseDatabase Toolboxdbdbtfailfindmdb

I am trying to use the DATABASE function in order to connect to a database. For example, I execute a command like:
conn=database('mydb','','')
However, the database object that is returned is invalid. The message field of the conn structure includes the following text:
Failed connection [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

Best Answer

This enhancement has been incorporated in Database Toolbox 3.1 (R14sp3). For previous product versions, read below for any possible workarounds:
This error message may be caused by a number of issues. If your data source cannot be found and you receive this error message, perform the following:
1. Check the list of drivers in the ODBC control panel to verify that the driver you want to use is on the list.
2. Check to see if the .mdb file for the database has been moved since creating the data source.
3. Verify that you are using the correct database name in the DATABASE command. In particular, be sure to use the database name and not the .mdb filename.