Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't connect to server

Status
Not open for further replies.

jianbo

Programmer
Dec 19, 2001
78
US
My working environment is Apache/PHP. I have three PC in a intranet. My Apache server is on one of them -- (server C), the other two install SQL server 2000 (And both are win2000 OS). I can connect to one server(A) either with name-pipe or URL, while I can't connect the other server(B) in both ways. I tried to build a ODBC connection from C to B, it worked fine.
I don't why the connection to C failed via Apache/PHP. Any setting problem?
Thanks.
 
Thanks,sleipnir
I have 3 PCs, for example their names are A, B, C, URLs are 111.111.11.1,111.111.11.2, 111.111.11.3.
I install Apache/PHP in C (OS is win2000).
B and C are installed SQL server 2000. (OSs are win2000)
I build connect using following commands:
Mssql_connect("A",$login,$password)
or Mssql_connect("111.111.11.1",$login,$password)
Both of them work fine
while
Mssql_connect("B",$login,$password)
And Mssql_connect("111.111.11.2",$login,$password)
don't work
Actually it worked before. After one day, I didn't know what changed, it doesn't work any more.
I tried to build ODBC connect to B, it works good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top