我的是两台服务器,一台是部署PHP程序,一台作为数据库服务器,两台服务器均为windows2003,均装有sqlserver2005,现在是无论连接本地的sqlserver2005数据库还是远程的数据库服务器都报数据库连接失败。
可是telnet端口是开着的,没有防火墙,用查询分析器也能连接。而后,我又做了一个测试,将PHP程序部署在一台装有sqlserver2000的机器上,再连接远程装有sqlserver2005的那台服务器,成功了,操作正常。难道是驱动的问题?客户端需要装sqlserver2000就行了?有关系吗

解决方案 »

  1.   

    Requirements for Win32 platforms. The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools.