Click here to Skip to main content
12,454,477 members (54,896 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Java Mobile 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


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