Solved

Connect Android app to DB

Posted on 2012-03-18
6
463 Views
Last Modified: 2012-03-30
I have a local MS SQL Server stored on my machine. What I would like to do is an android application that can actually access this database. how can i do this.any tutorial or links will be appreciated.

cheers
ZOlf
0
Comment
Question by:zolf
6 Comments
 
LVL 14

Expert Comment

by:John-Charles-Herzberg
ID: 37734556
0
 

Author Comment

by:zolf
ID: 37734578
thanks for your comments.
that was not helpful. also i would appcreate if you provide some java version
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37734599
not such a good idea to connect your client directly to sql server. instead make a service and connect to service, let the service respond to your requests in form of JSON or XML.

here are few examples:-
http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/
http://www.ibm.com/developerworks/xml/library/x-dataAndroid/

have a look at this discussion as well on SO:-
http://stackoverflow.com/questions/5253127/how-to-connect-to-a-mysql-database-from-an-android-app
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 11

Expert Comment

by:stevengraff
ID: 37734878
We see here that it's possible to do.
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37735137
I am not saying it can't be done, however its not advisable to do so...
Even the description of the app says so:-


Perfect for website owners who need to check on things or run a quick update statement
0
 

Author Comment

by:zolf
ID: 37745801
thanks for your comments.

can somebody tell me how i can show a table record from my sql server table into my android application.a simple e.g. or tutorial will be appreciated.i want to know what things is neeed
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
A short article about problems I had with the new location API and permissions in Marshmallow
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question