Does Android supports SQL Servers? If so how to connect to SQL 2008 in my Android Application?
Asked
Active
Viewed 7,788 times
3 Answers
2
You can not connect directly, you need a web service to do the job.
http.client can help you with the communication with the web service

Svetlozar Angelov
- 21,214
- 6
- 62
- 67
-
Why not? Shouldn't android support normal libraries for connecting to sql directly over the network? It would be hard to use while moving with the device, but I would think it is possible... – Janusz Mar 04 '10 at 12:41
-
It is possible, but I am not aware of such libraries – Svetlozar Angelov Mar 04 '10 at 12:43
1
I think i can help you. I have developed a connection from android to Microsoft SQL Server. I've used: web service with Linux Ubuntu, Apache as web server, PHP and FreeTDS to connect Microsoft SQL server, and it works.
I hope it would help you.
http://boedblog.blogspot.com/2012/03/ubuntu-apache-php-freetds-mssql.html

helly0d
- 828
- 2
- 10
- 27

budy wijaya
- 11
- 1
0
You could use the jtds driver (version 1.25) to connect to an external sql server - it works!

Tobias Schittkowski
- 2,221
- 2
- 16
- 25