User`s guide
Database Connection Error Messages
3-9
Database Connection Error Messages
This table describes how to address common errors you might encounter while connecting
to the Database Toolbox using Database Explorer or the command line.
Connection Error Messages and Probable Causes
Vendor Error Message Probable Causes Resolution
All Undefined variable
'database' or class
'database.ODBCConnection'.
• Database Toolbox
software is not
installed.
• You are connecting
using the native
ODBC interface
with MATLAB
R2013a or earlier.
• Ensure that
Database Toolbox
software is installed.
• If you want to use
the native ODBC
interface, ensure that
MATLAB R2013b or
later is installed.
All
ODBC-
Compliant
Databases
[Microsoft][ODBC Driver
Manager] Data source
name not found and no
default driver specified
Data source name is
not spelled correctly.
Verify your data source
name.
All
JDBC-
Compliant
Databases
Unable to find JDBC
driver.
• Path to the JDBC
driver JAR file is
not on the static or
dynamic class path.
• Incorrect driver
name provided while
using the 'driver'
and 'url' syntax.
Verify that you add
the path to your JDBC
driver to the static or
dynamic path. Ensure
that you provide the
correct JDBC driver
name for the driver
and databaseurl
arguments.
All
ODBC-
Compliant
Databases
[Microsoft][ODBC
Driver Manager] The
specified DSN contains
an architecture mismatch
between Driver and
Application
There is a difference
in the bitness (32-bit
or 64-bit) between the
database, driver, and
MATLAB.
Install the driver and
database with the
correct bitness. For
details about Windows
bitness configurations
for different databases,
see “Configuring
a Driver and Data
Source”.