https://au.mathworks.com/help/database/ug/database.options.jdbc.sqlserver.sqlconnectionoptions.saveasdatasource.html
saveAsDataSource - Save JDBC or ODBC data source - MATLAB
This MATLAB function saves the JDBC or ODBC data source, where opts is one of the following: SQLConnectionOptions object for JDBC connections.
data sourcesavejdbcodbcmatlab