Jdbc 将netbeans 8.1中的ireport与MS SQL Server 2014连接

Jdbc 将netbeans 8.1中的ireport与MS SQL Server 2014连接,jdbc,jasper-reports,database-connection,sql-server-2014,Jdbc,Jasper Reports,Database Connection,Sql Server 2014,我正在尝试在netbeans中的ireport插件与Ms SQL server 2014之间建立连接。我使用最新的Microsoft JDBC Drivers 6.0版本向netbeans添加了一个新的驱动程序。但仍然存在以下错误: Cannot establish a connection to jdbc:sqlserver://localhost:1433;databaseName=CSG_Project using com.microsoft.sqlserver.jdbc.SQLServe

我正在尝试在netbeans中的ireport插件与Ms SQL server 2014之间建立连接。我使用最新的Microsoft JDBC Drivers 6.0版本向netbeans添加了一个新的驱动程序。但仍然存在以下错误:

Cannot establish a connection to jdbc:sqlserver://localhost:1433;databaseName=CSG_Project using com.microsoft.sqlserver.jdbc.SQLServerDriver
(The TCP/IP connection to the host localhost, port 1433 has failed. Error: "Connection refused: connect.
Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. 
    Make sure that TCP connections to the port are not blocked by a firewall.".)

有什么帮助吗?

您是否按照错误消息中的建议检查了配置?默认情况下,SQL Server不侦听端口1433。您需要显式配置该端口。我已启用TCP/IP协议,并通过SQL Server配置管理器为SQL Server服务设置TCP端口。消息“连接被拒绝:连接”表示端口未打开(或连接被防火墙主动阻止);这里没有更多的魔法。我正在尝试使用jaspersoft designer进行连接,例外情况是:java.lang.ClassNotFoundException:com.microsoft.sqlserver.jdbc.SQLServerDriver。。。jasper插件看不到我在“服务”选项卡中添加的jdbc驱动程序??