如何使用JTDS驱动程序在Android中连接SQL服务器 [英] how to connect sql server using JTDS driver in Android

查看:168
本文介绍了如何使用JTDS驱动程序在Android中连接SQL服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我新的机器人.. 我想用JTDS驱动程序来连接SQL服务器。 任何一个可以告诉我..

i am new in android.. i want to connect sql server using JTDS driver. can any one tell me..

日Thnx提前...

thnx in advance...

推荐答案

获取错误ClassNotFoundException的,而使用Android上JTDS直接访问SQLSERVER?

Getting error "ClassNotFoundException" while using JTDS on ANDROID to direct access SQLSERVER?

3小时后RND,查找在同一上述错误的解决方案。我没有得到有在code没有错误,我也有进口JTDS-1.3.0库妥善延续了code调试仍然得到同样的错误一遍又一遍。

After 3 hours RND, for finding solution for the same above error. I didnt get there is no error in the code, also I have import "jtds-1.3.0" library properly continues debugging of code still getting same error again and again.

{
 Class.forName("net.sourceforge.jtds.jdbc.Driver");

 Connection conn = DriverManager.getConnection(
 db_connect_string, db_userid, db_password);
}

我试过的替代,改变行

I tried alternative to, changing line

...... Class.forName("net.sourceforge.jtds.jdbc.Driver");

...... (new Driver()).getClass();

...... (new Driver())

当我尝试了所有的这些,我因子评分有可能是JTDS-1.3.0库中的问题,我做了什么,只要下载了旧版本JTDS-1.2.5,并将其导入;和解决的问题。

when I tried all of these, I tought there might be a problem in jtds-1.3.0 library, and what I did, just download the old version jtds-1.2.5 and import it; and the issue resolved.

于是,朋友在那里。如果你得到同样的错误,并尝试不同的方法已经,试试这个。

So, friends out there If you getting same error and tried different ways already, try this.

这篇关于如何使用JTDS驱动程序在Android中连接SQL服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆