Click here to Skip to main content
13,055,408 members (52,859 online)
Rate this:
Please Sign up or sign in to vote.
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
Please Sign up or sign in to vote.

Solution 2

That's easy:[^]

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.
Mostafa Elsadany 23-Dec-12 3:44am
thanks for help
the problem with me now
in this

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:

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 @

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
Web02 | 2.8.170713.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2017
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