[英]cannot connect java app to sql server 2008 R2
I'm using SQL Server Express 2008 R2. 我正在使用SQL Server Express 2008 R2。 When i run project in Netbeans, it works fine with server name : localhost;
当我在Netbeans中运行项目时,它在服务器名称下可以正常工作:localhost; port : 1433. But when i try to run app outside Netbeans (double click on jar file), i got it cannot connect to server.
端口:1433。但是,当我尝试在Netbeans外部运行应用程序(双击jar文件)时,我发现它无法连接到服务器。 Please help me to fix it.
请帮助我修复它。 Thanks in advance !
提前致谢 !
This could be the bug with JDBC and SQL 2008 r2, I had the same thing. 这可能是JDBC和SQL 2008 r2的错误,我有同一件事。
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7105007 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7105007
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.