User`s guide

Deploying a Database Application with MATLAB Compiler
2-201
Native ODBC and ODBC Drivers
After compiling your database application, you must define the data sources referenced
in your code on the target machine using the ODBC Data Source Administrator. Then,
you can run your database application on the target machine.
JDBC Drivers
For applications that use JDBC drivers, use either option to specify the JDBC driver on
the target machine:
Use javaaddpath in your function code to add your JDBC driver JAR file. Do not
include the JAR file in the javaclasspath.txt file.
Add the JDBC driver JAR file to your javaclasspath.txt file. Do not use
javaaddpath in your function code. For Microsoft SQL Server operating system
authentication, add the full path of the library file to the javalibrarypath.txt file.
For details, see “Microsoft SQL Server JDBC for Windows” on page 2-33.
Caution: Do not add driver JAR files using javaclasspath as this might cause issues on
the target machine. For details, see “Bringing Java Classes into MATLAB Workspace”.
See Also
javaaddpath
More About
“Write Deployable MATLAB Code”
“Create Functions in Files”
“Package Standalone Application with Application Compiler App”
“Bringing Java Classes into MATLAB Workspace”