问题描述
我正在尝试使用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数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!