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 derfloh 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
Joined
Dec 19, 2001
Messages
78
Location
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.
 
Could you explain that a little more explicitly?

State what is running on each machine.

State from where to where you can and cannot connect and how you are trying to perform that connection.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
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