Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java JDBC Android
hi everyone
how i can use JDBC with android
to connect to MS Sql server
thanks for any help
Posted 21-Dec-12 8:41am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Mostafa Elsadany at 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. at 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 at 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. at 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 at 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)

  Print Answers RSS
0 CPallini 510
1 Sergey Alexandrovich Kryukov 428
2 George Jonsson 298
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web03 | 2.8.140905.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100