Has anyone connected Matlab to a MS Azure SQL database?
Afficher commentaires plus anciens
Has anyone connected Matlab to a MS Azure SQL database? I normally connect to a local DB via ODBC connection; how would you do this for Azure SQL?
Réponse acceptée
Plus de réponses (2)
Jose Ibanez
le 26 Mar 2020
2 votes
id = 'MySqlUser' ;
pwd = 'MySQLPassword';
sDriver ='com.microsoft.sqlserver.jdbc.SQLServerDriver';
sqlSDriverPath = 'C:\Apps\sqlserverjdbdc\sqljdbc_4.2\enu\jre8\sqljdbc42.jar';
javaaddpath({sqlSDriverPath});
sqlDBInfo = 'jdbc:sqlserver://myAzureDatabaseFolder.somecharacters.database.windows.net; database=MyDB';
MyConnection = database('', id, pwd, sDriver, sqlDBInfo);
Andre
le 21 Fév 2019
0 votes
Catégories
En savoir plus sur Database Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!