How to deploy a web app with database connection ?

3 vues (au cours des 30 derniers jours)
Hafidh Azmi Samhari
Hafidh Azmi Samhari le 3 Mar 2019
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.

Réponses (2)

HimeshNayak
HimeshNayak le 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 le 12 Juin 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

Catégories

En savoir plus sur MATLAB Web App Server dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by