将MS SQL数据库连接到railo数据源

时间:2013-10-21 02:11:43

标签: sql-server-2005 coldfusion sql-server-express railo

我有一段时间通过我的铁路安装连接MS SQL数据源。我可以通过Adobe ColdFusion很好地连接,但是铁路不断抛出错误

在Adobe ColdFusion中,我的服务器设置为mycomputername\sqlexpress,端口1433.在Railo中使用相同的服务器,数据库,用户名和密码。我收到以下错误

The TCP/IP connection to the host myservername, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".

我还尝试通过SQL Server配置管理器中列出的IP地址进行连接,IP4设置为活动状态,启用IP地址为127.0.0.1,但是会抛出与上面相同的错误

我打开了IPv6并在我的TCP / IP设置中显示为IP1,但我不知道为什么会导致问题。

端口1433已打开,因为我可以通过Adobe ColdFusion连接。我希望我错过了一些明显的东西,但我很难过。

1 个答案:

答案 0 :(得分:1)

我终于通过在SQL Server配置管理器>中将Listen All设置更改为no来实现此功能。 TCP / IP属性

TCP/IP Properties

并将TCP端口设置为1433并在IP2下启用数据源

IP Addresses