How to deploy a web app with database connection ?

4 次查看(过去 30 天)
Im trying to create a web app that has an ODBC database connection in it, when i try to run it on a browser, it gets error on the line that has the code to connect the database. Any suggestion on how to deploy matlab web app with database connection ?
im using matlab r2018b, matlab web app server, app designer, and ms acces to make the project.

回答(2 个)

HimeshNayak
HimeshNayak 2023-3-16
Hi Hafidh
As per my understanding you want to deploy a MATLAB Web Application that is connected to an ODBC Database.
ODBC database connection functionality was introduced in R2021a. I would suggest you update MATLAB to version R2021a or above.
Following are some documentations that you can go through for the same.
Create an ODBC Database Connection
Deploy a Web Application
You have mentioned that you have received an error while connecting to the database. Could you share the relevant files and reproduction steps for better understanding of the question?
Regards
HimeshNayak

Hans Nerlich
Hans Nerlich 2023-6-12
I have the same probleme,
I do not find stuff to connect with odbc, but here is a post using jdbc for that:
https://de.mathworks.com/matlabcentral/answers/1657725-how-do-i-connect-to-an-ms-sql-database-through-jdbc-in-a-deployed-web-app

类别

Help CenterFile Exchange 中查找有关 MATLAB Web App Server 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by