无法使用Netbeans连接到Sql Server数据库 [英] Can't connect to Sql Server database with Netbeans

查看:289
本文介绍了无法使用Netbeans连接到Sql Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Netbeans 8.2建立连接数据库SQL Server 2012



使用连接向导选择Sql Server 2012,然后输入凭据和字段。 / p>

但是我收到无法建立连接的消息。



您可以看到输入字段的屏幕截图: 完整分辨率

解决方案

您需要输入集成安全性在您的数据库URL中。我的连接字符串有效,如下所示:

  jdbc:sqlserver:// localhost\ComputerName:1433; databaseName = DatabaseName; integratedSecurity = true; 

如果您使用的是混合模式身份验证,则将 integratedSecurity的条目更改为false并且应该可以。


I'm trying to make a connection database SQL Server 2012 with Netbeans 8.2

Using the connection wizard I select Sql Server 2012 and enter the credentials and fields.

However I get the message that a connection cannot be established.

You can see screenshots of the entered fields: Full Resolution

解决方案

You will need an entry for 'Integrated Security' in your database URL. My connection string, which works, is as follows:

jdbc:sqlserver://localhost\ComputerName:1433;databaseName=DatabaseName;integratedSecurity=true;

Change your entry for 'integratedSecurity' to false in your case, if you are using mixed mode authentication, and it should work OK.

这篇关于无法使用Netbeans连接到Sql Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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