java sql连接
我创建了一个名为“harshi”的用户 dsn
要在从 Java 代码获取数据的表中插入行,我想插入 SQL 表中。 连接语句是:
String url = "jdbc:odbc:Harshi";
Connection conn = DriverManager.getConnection(url,"","");
Statement st = conn.createStatement();
我仍然得到输出:
出现异常!
[微软][ODBC SQL Server 驱动程序][共享内存]SQL Server 确实 不存在或访问被拒绝。
我该如何解决?
I have created a user dsn named "harshi"
To insert rows in a table getting data from Java code I want to insert in SQL table.
The connection statement is:
String url = "jdbc:odbc:Harshi";
Connection conn = DriverManager.getConnection(url,"","");
Statement st = conn.createStatement();
Still I am getting output as:
Got an exception!
[Microsoft][ODBC SQL Server
Driver][Shared Memory]SQL Server does
not exist or access denied.
How can I solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要解决此错误,请尝试以下方法之一:
To troubleshoot this error, try one of these: