I am trying to access Azure SQL Database , using java. Our code will be staying in MS Appcenter. Since the DB firewall is not letting the Appcenter to access the database, I am trying to use API. Can someone help me provide me steps / sample code to get it started?
2
-
1please ref:Quickstart: Use Java to query a database in Azure SQL Database or Azure SQL Managed Instance. Is this you want?Leon Yue– Leon Yue2020-06-18 05:30:01 +00:00Commented Jun 18, 2020 at 5:30
-
Did you set Allow Azure services and resources to access this server on in SQL database filrewall?Leon Yue– Leon Yue2020-06-18 05:33:57 +00:00Commented Jun 18, 2020 at 5:33
Add a comment
|
1 Answer
You will need to enable firewall of Azure SQL Database to allow connection from azure (as you are hosting it in the MS Appcenter). In order to do that read document
Once that is enabled, you can use documentation Quickstart to see how you can connect from it from application. Above document is in java language but you can find similar document for other languages also.