• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Saving data into sqlserver table using android studio

Neelima18

Lurker
Hi ,
I am trying to save data into sqlserver using android studio.
Once i select few options and write some text in text boxes and when i click submit , the data should save into sqlserver tables.
I am unable to find any reference tutorial regarding this as many are posted articles using myphp.

Could anyone please help me ins saving data into sqlserver 2012 or sqlserver 2014 using android studio.

Thank you in advance.

Thank You
 
Are you talking about transferring data to a remote server with access to SQLServer?
You can not simply save data to a SQLServer database directly from an Android app, because this database does not run on Android. The native database for Android is SQLite. If you wish to save your data to a SQLServer database, which would be running on a Windows system, this will involve doing the following:-

1. Implement a web service to accept the data from your device. This can be done by several techniques, one of which is to use web page, with embedded PHP to access the database. Another option is to implement a Java applet, which access the database using JDBC.

2. Code your Android application to collect the data, and submit it to the server using the remote web service.

Alternatively, you could make the Android application use a Webview, and write HTML (a web page) to collect the data using a form. The HTTP server would then receive the data, and access the database.
 
Back
Top Bottom