Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi everyone
how i can use JDBC with android
to connect to MS Sql server
thanks for any help
Posted

1 solution

That's easy:

http://appinventor.blogspot.de/2011/07/android-mysql.html[^]

Pretty much a common MySQL-Connection.

Please search for some MySQL Tutorials when you get stuck there - that stuff is well documented throughout the web.
 
Share this answer
 
Comments
Mostafa Elsadany 23-Dec-12 3:44am    
thanks for help
the problem with me now
in this
Class.forName(“net.sourceforge.jtds.jdbc.Driver”);

android : error message net.sourceforge.jtds.jdbc.Driver
TorstenH. 23-Dec-12 3:48am    
he does not find that.
But that's crap anyway, delete it and refer to the tutorial I linked.
What you need is:

Class.forName(“com.mysql.jdbc.Driver”);
Mostafa Elsadany 23-Dec-12 3:54am    
he does not find any think with class.forname (**** )
i don't know why
i added to build path
but i don't know why can't find
TorstenH. 23-Dec-12 5:09am    
you need to have the libraries, that does not work by "magic".

By the Way - Android has a database included, so if it is a internal action you should refer to that one: Android & SQLite @ vogella.com

The basic work with SQL is always the same - the queries and things like that are 99% reusable on any system.
Mostafa Elsadany 23-Dec-12 5:26am    
thank but i want connect to MS Sql server

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900