mssql_connect
| From: | Carlos Andre Marques Moreira | Date: | Mon, 14 May 2001 19:05:13 +0000 |
| Subject: | mssql_connect | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7548@lists.php.net to get a copy of this message | ||
Hi all,
I have the following configuration:
winnt + apache + php4.0.4 called let's say server1.domain.com and one with
winnt + MS SQL Server 7.0 called server2.domain.com and a third machine with
win200 + iis + php3.0.15 + MS SQL Server 7.0 called server3.domain.com on
server3 the SQL Server is called server3
I have a script in server1 trying to access the sql server in server2 using
this:
$conn_id = mssql_connect("server2.domain.com","login","password") or
die("Erro de Conexão!");
and i get the following message:
Warning:MS SQL: Unable to connect to server: server2.domain.com
I though the login and/or password were wrong, but the administrator of
server1 and server2 said it is right.
When the script were on server3 things were going right and i used:
$conn_id = mssql_connect("server3","login","password") or
die("Erro de
Conexão!");
Is this clear?
In Short, i want to connect to a sql server on a remote machine, can anyone
give me some help?
Carlos André Marques Moreira
camoreira@sfiec.org.br
Bolsista CNPq / RHAE
SENAI-CE/CETAE
2001 Ano Internacional do Voluntário