Can't connect to Sql Server database with Netbeans

你说的曾经没有我的故事 提交于 2019-12-11 06:36:14

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/42937983/cant-connect-to-sql-server-database-with-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!