android中没有合适的驱动程序。

编程入门 行业动态 更新时间:2024-10-27 20:39:03
本文介绍了android中没有合适的驱动程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我尝试连接到sql server时出现错误。我设置了所有正确的东西,因为我认为。还添加了Jtds驱动程序。但仍然收到错误。 请有人可以给我是一个解决方案。 非常紧急的项目。 这是我的代码。

There is an error occured when Im trying to connect to sql server.I set all the things correct as i think.Added the Jtds driver also.but Still getting error. Please Can Someone give me a solution for this. Its very urgent Project. Here is my code.

public Connection conn = null; public static final String driver = "net.sourceforge.jtds.jdbc.Driver"; public static final String connString = "jdbc:jtds:sqlserver://192.168.152.111; DatabaseName=IT_Assets"; String username = "sa"; String password = "123"; conn = DriverManager.getConnection(connString, username,password); <== (I get error in Here..) Log.w("Connection", "open"); Statement stmt1 = conn.createStatement(); ResultSet c1 = stmt1.executeQuery("select * from Table1");

请求帮助。 谢谢...

Please Need a help. Thanks...

推荐答案

看看这个故障排除指南 [ ^ ]

更多推荐

android中没有合适的驱动程序。

本文发布于:2023-10-18 23:40:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1505757.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:驱动程序   合适   android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!