Hi Jack!
Someone called Google Mike has some threads running about SQL server
here as well. You should check them out.
On 25 Nov 2003 06:42:30 -0800,
johnsmith@county.allegheny.pa.us (Jack
Smith) wrote:
[color=blue]
>I am unable to connect to certain SQL servers from PHP on IIS.
>
>I have two IIS 5 servers, both are Windows 2000 Server boxes with PHP
>4.3.4 and MDAC 2.80.1022.3. I have three SQL Server machines - two
>SQL2K SP3a machines and one SQL 7.0 SP4 machine. One of the SQL2K
>servers is the same machine as one of the IIS 5 servers.
>
>One of the IIS servers, Server1, can mssql_connect to all three SQL
>servers. The other IIS server, Server2, can only mssql_connect to one
>of the SQL2K servers. I get a "connect failed" error when attempting
>to hit the other two SQL servers. The one it can connect to,
>incidentally, is the SQL server that resides on the _other_ IIS
>server.[/color]
I would first check DNS and WINS. Open a cmd-prompt on the server
where it fails and connect to the server with telnet.
Eg. if you use "30.30.30.30:1433" try telnet 30.30.30.30 1433
ut if you use a name, try this one.
Eg. telnet sqlserver5 1433
If it connects, then its not a network problem, otherwise it is.
[color=blue]
>I have tried copying the PHP application from Server1 to Server2. The
>same PHP app that can connect to all three SQL Servers from Server1
>can only connect to SQL on Server1 from Server2.
>
>Here's a chart of the servers:
>
>ServerName |OS |SQL Version |PHP Can connect to...
>-------------|-----------|----------------|-------------------------
>Server1 |Win2k Svr |SQL2K SP3a |Server1, Server3, Server4
>Server2 |Win2k Svr |N/A |Server1
>Server3 |NT 4.0 |SQL7 SP4 |N/A
>Server4 |Win2k3Svr |SQL2K SP3a |N/A
>
>
>Any insight would be greatly appreciated.[/color]
HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/