How to deploy a web app with database connection ?

10 views (last 30 days)
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.

Answers (2)

HimeshNayak
HimeshNayak on 16 Mar 2023
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 on 12 Jun 2023
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

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!