How can I connect a web app with a SQL database in Azure? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

How can I connect a web app with a SQL database in Azure?

I need REST services, I have found references on using ASP.NET but is not clear how to proceed.

14th Dec 2016, 3:57 PM
Jose M Torres
Jose M Torres - avatar
2 ответов
+ 3
Go to your Azure SQL Database and get a copy of the connection string. (It won't have your password, so you'll have to add that in a minute. Next, go to your Web App, click on the "All Settings" and under then click "Application Settings". Scroll down to "Connection Strings" and either create a new connection string (and paste it in from the first step) or update the existing connection string. Be sure to update the password in your connection string. If you create a new connection string, make sure it's the same name as that one you are referencing in your code or you will have to change your code and redeploy as that as well.
28th Dec 2016, 7:15 PM
Mohammad Abu Sayed
Mohammad Abu Sayed - avatar
+ 1
Thank you!
29th Dec 2016, 8:39 PM
Jose M Torres
Jose M Torres - avatar