简体   繁体   English

Netbeans 6.9到SQL Server 2008 R2:“无法解决排序规则冲突…”

[英]Netbeans 6.9 to SQL Server 2008 R2: “cannot resolve collation conflict…”

I'm trying to connect to a SQL Server 2008 R2 Express on my local workstation but keep getting an error. 我正在尝试连接到本地工作站上的SQL Server 2008 R2 Express,但始终出现错误。 In Netbeans 6.9, in the New Entity Classes from Database wizard, I choose to Create a New Database Connection, Direct URL entry, select the SQL Server 2005 entry, enter the user name and password and the enter the JDBC URL (jdbc:sqlserver://myhost\\sqlexpress:1234;databaseName=contoso). 在Netbeans 6.9中,从数据库新建实体类向导中,我选择创建新数据库连接,直接URL条目,选择SQL Server 2005条目,输入用户名和密码,然后输入JDBC URL(jdbc:sqlserver: // myhost \\ sqlexpress:1234; databaseName = contoso)。 That leads to this error: 这导致此错误:

替代文字

I'm using the sqljdbc4.jar driver from here . 我从这里使用sqljdbc4.jar驱动程序。 What am I doing wrong? 我究竟做错了什么?

However, despite this error, on the Services tab, I can open my the Databases node and see my SQL Server database instance with all the databases listed. 但是,尽管出现了此错误,我还是可以在“服务”选项卡上打开“数据库”节点,并查看列出了所有数据库的SQL Server数据库实例。 I can even issue a query against the contoso database and get results. 我什至可以对contoso数据库发出查询并获得结果。 So the problem seems to be with the Wizard. 因此问题似乎出在向导上。

Any suggestions? 有什么建议么?

服务器的排序规则与数据库的排序规则不同。

http://forums.netbeans.org/topic29593.html http://forums.netbeans.org/topic29593.html

Also there seems to be a bug creating entity class from database using Netbean 6.9 and SQL server 2008 R2 此外,似乎还存在使用Netbean 6.9和SQL Server 2008 R2从数据库创建实体类的错误。

The thread is from July 2010 but I am still having same issue so you may want to search a bit and see if rollback to netbean 6.8 where people say it works fine in that version. 该线程是从2010年7月开始的,但是我仍然遇到相同的问题,因此您可能需要进行一些搜索,看看是否回滚到了netbean 6.8,在该版本中人们说它可以正常工作。

But this has nothing to do with your error message though just wanted to give you heads up. 但这与您的错误消息无关,尽管只是想提醒您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM