Click here to Skip to main content
11,636,213 members (76,182 online)
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 jyo.net 295
1 Sergey Alexandrovich Kryukov 275
2 OriginalGriff 233
3 Suvendu Shekhar Giri 225
4 stibee 215
0 OriginalGriff 8,941
1 Sergey Alexandrovich Kryukov 8,459
2 Mika Wendelius 6,849
3 F-ES Sitecore 2,364
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2015
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