本文介绍了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中没有合适的驱动程序。
发布评论