How to let server or deployed app know where to find DB driver?

1 回表示 (過去 30 日間)
JFz
JFz 2018 年 11 月 9 日
回答済み: Ran Chen 2018 年 11 月 12 日
Hi, I have a test app, only a few lines to just test the database connection and run a querry via database toolbox. I compiled it with Matlab 2018a compiler. I can deploy it and run on my computer without any problem. But when I deployed it on a MS server 2012, and ran it, I got an error in setting up the connection. The error is: "No suitable driver found". But I have the driver copied over to the server.
So how to let the server or the app know where to find the driver? Thanks for any help!

回答 (1 件)

Ran Chen
Ran Chen 2018 年 11 月 12 日
https://www.mathworks.com/matlabcentral/answers/92301-how-can-i-access-a-sql-server-database-with-a-jdbc-driver-if-i-have-windows-authentication-using-dat

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by