- 1. Download and install the JDBC drivers that support Azure (> 4.0 I think)
- 2. In MATLAB, open classpath.txt, and add the path to your JDBC driver (e.g. C:\Program Files\sqljdbc_6.0\enu\sqljdbc4.jar) on the last line of the classpath.txt file. Restart MATLAB.
- 3. Open the Database Explorer tool in MATLAB (requires Database toolbox):
- 4. R2017a or earlier: close the dialog that pops up. Click "New", select JDBC source. R2017b or later: click "Configure Data Source"
- 5. In the dialog, give your data connection a local name, then fill in the details of your SQL server
- 6. Click 'test' to test the connection, and save
- 7. In the app, click "New Query" (R2017b or later) or "Connect" (R2017a or earlier)