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.
Related
I have a node.js API that is using SQL server beta from Google Cloud SQL. Works fine when testing locally and connecting directly via IP.
I deployed the API on Google APP Engine and works fine less the connection to the database. Now, what will be the server connection string to connect directly from the project API to Google cloud - SQL server beta. How I can make use of instance connection name? (Note: Cloud SQL Admin API is enabled for this project)
I found many examples to connect for mySQL instances, but none to an SQL beta.
How to connect SQL server beta (Google Cloud) to Google API engine (Node.js) ?
As Eugen point out, Cloud SQL instance that are using SQL server are still in beta and therefore, many features are not yet available.
As stated here there's still no option to connect to a Cloud SQL SQL server instance from App Engine. Neither it seems to exist options to connect from external application such as Kubernetes or Compute Engine, as seen here.
Nonetheless, you could try to connect to your SQL server instance by using the Cloud SQL proxy to do local testing, as shown here.
Then, you could try to use some node.js library that can act as a node.js library, as this one for example, but I can not confirm that I will work within App Engine.
Nonetheless, if you have the option, I highly recommend you to use Cloud SQL instance using MySQL or PostgreSQL since they support connection from App Engine apps, as seen here.
I hope this helps.
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.
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 have created a form and grid using ExtJS 4.1.1 for insert, update, delete in MVC pattern in Visual Studio 2010. I want to perform these CRUD task with SQL Server (I have created the procedure) but I have no idea that how can I use ExtJS with SQL Server and C#. Even in Sencha web there is tutorial for PHP and MySQL only.
Thus, I am looking to connect ExtJS with SQL. I need step by step tutorial and guide that I can complete my official project.
Ext JS is a server-agnostic UI framework... so while some of the examples you have seen are in PHP with MySQL, it ultimately doesn't affect the JavaScript code. For example, the REST proxy:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.Rest
This proxy (like all proxies in Ext JS) connects to a remote data service. That service sends/receives XML, JSON, or some other data format.
What the remote data service (written in .NET, PHP, Java, or anything else) does with the data once it's been received has nothing to do with Ext JS.
It sounds to me like you need a tutorial for writing web services in C#.