I just started creating an application using NativeScript using Angular. I created a database using Azure and SQL. I'm really confused on how to connect the two though and can't find too much on it. Could someone help me out? Thanks!
None of the mobile apps connect to SQL database directly, you will expose REST services which will act as a middle man between your mobile app and database.
If you don't have a backend setup, then other option is to try one of the mobile backend services, Firebase for instance.
Related
I am trying to implement a solution to automate the deployment of an api to multiple hosts. The api is a private one which links a mobile app to a on-prem DB.
Right now i have to connect to the said host with VPN, create a backup of the API, paste the new one, change the DB connectionString and then move to the next one.
The question is how can i simplify this process? I want to be able to deploy said API to all hosts using specific Server and Database variables to connect to their databases.
I am looking more for guidance, not a complete in-depth implementation but explaining the process a bit sure is welcomed :)
The API runs on ASP Core 6.0 using Azure Devops as a TFVC repo
I have a basic reactjs application which has a form that I want on submit, should store the value of input elements(text-boxes, selects and radio buttons), to store the data to the database in azure SQL DB. The react app (front-end only yet) is deployed using the Azure App service.
I have been looking for ways on how to approach this, but the more i explored the more i got confused. The official documentation suggests using tedious, and some sources recommend using express with sequelize, and a few more.
I'm looking for a direction on how to approach this. I, being a beginner in this, am open to suggestions or if someone can direct me to a source that might be of some help.
It sounds like you want to directly connect Azure SQL Database from the front-end of your ReactJS App in a browser. There is a similar SO thread How to connect to SQL Server database from JavaScript in the browser? had been answered for this scenario. But it's impossible for working in modern browsers, because the solution using ActiveXObject only works in the old IE browser.
So a backend server using express for NodeJS or other framework in other language is necessary to get the data submitted from the frontend page of ReactJS page and store to Azure SQL Database using tedious for NodeJS or other ORM framework for other language.
For Node.js, please refer to the offical tutorial Node.js Driver for SQL Server to know how to operate SQL Server at the Node backend.
I working on my school project.My project purpose is movie rating application with ionic.When I will present my application on the phone.I need to get data on the internet.So I have to use cloud system for keep in web service and sql database.Oh also I will using sql database.I want to build database and web service on the azure.But its my first time for azure.How can I migrate my sql database to azure and how can I create web service in azure.Im rookie these things.I need a starting point.I searched on the web but cant find a good tutorial :(
If your SQL Database and WebService structure is not a requirement, you can also explore other options such as Mobile Apps. Mobile apps is a workload on Azure specifically built for such scenarios to connect with mobile devices and two way data communication. It uses what is called "Table storage" on Azure. You can start with that and later on move to a no-sql database such as DocumentDB for persistent storage and querying.
You can find a step by step tutorial below on how to create the Mobile apps and connect it to different platform such as Windows Phone, Android or iPhone. The link here is for Android. If you wish to use other platforms you can use the tab to switch to them. It will even give you a sample project that you can download and run directly which can get you started pretty quickly. I also have a blog post around this if you are interested.
https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-android-get-started/
Hope this helps!
I'm trying to develop a WP8 app, and I have a free online sql server (not windows azure).
How can I Access the Database from the phone app?
I tried a local WPF sevice and it worked, but it won't help if I'd like to upload the app to the store.
Thanks for the help!
As far as i'm aware, you can't access the database directly, you need a proxy web service for this, i recommend you to look at OData, REST APIs and also to JSON or XML to transfer your data from the database to your app.
I understand that to access a SQL database from Android I need to create a web service that will run on the SQL server and will process requests from the Android application, what I need to know is how to create this web service and how to access it from Android.
If anyone can point me in the right direction then this would be greatly appriciated.
On the client side, use Apache Commons HttpClient to communicate with the web service. It's bundled with the SDK.
Don't forget that you can also use a local DB.
How you create the web service server-side depends on your environment and has nothing to do with Android itself.