Remote connect to SQL Server Standard Edition from PHP/FreeBSD

北城以北 提交于 2019-12-12 02:48:14

问题


Unable to connect to our company MSSQL server from one of our FreeBSD servers.

# telnet 192.168.1.51 1433
Trying 192.168.1.51...
telnet: connect to address 192.168.1.51: Connection refused
telnet: Unable to connect to remote host

No firewall running on the MSSQL server, and i have opened the default port on the BSD-FW

00210 allow tcp from any to any dst-port 1433 in
00215 allow tcp from any to any dst-port 1433 out

Any ideas on this?

The specifics of the MSSQL server running on a Windows Server 2003


回答1:


Test whether you can connect from another non-local machine. If not TCP connections may not be enabled for SQL Server. Here are instructions for enabling TCP/IP Connections with SQL Server 2000




回答2:


I updated it MSSQL to Service Pack 4, and i'm now able to telnet to the server on the specified port. And also connect to the server from PHP with pdo_dblib



来源:https://stackoverflow.com/questions/8381787/remote-connect-to-sql-server-standard-edition-from-php-freebsd

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