RE: [PHP-WIN] mssql_connect

From: Date: Mon, 14 May 2001 20:10:02 +0000
Subject: RE: [PHP-WIN] mssql_connect
Groups: php.windows 
Request: Send a blank email to php-windows+get-7554@lists.php.net to get a copy of this message
Well, i just don't know. While programming, scripts were on server3, there i have iis + sql 7. There i just used mssql_connect("server3","login","password") where server3 is the name of the sql server on server3 machine, and server3 is the connection parameter associated with multiprotocol shown by the SQL Server Network utility. When connecting to a remote machine i thought i would only put server2.domain.com + login + password How could i make a connection using tcp/ip or named pipes? Which one is better? For TCP/IP it is just server2.domain.com:PORT ? I'll ask what's the port being used. With the SQL Server Enterprise Manager i could make a connection from server3 to server2 just by using server2.domain.com and then providing the login + password i used on the mssql_connect function Thanks. Carlos André Marques Moreira camoreira@sfiec.org.br Bolsista CNPq / RHAE SENAI-CE/CETAE 2001 Ano Internacional do Voluntário -----Original Message----- From: Svensson, B.A.T. [mailto:B.A.T.Svensson@lumc.nl] Sent: segunda-feira, 14 de maio de 2001 16:46 To: Carlos Andre Marques Moreira; 'php-windows@lists.php.net' Subject: RE: [PHP-WIN] mssql_connect [...] >Warning:MS SQL: Unable to connect to server: server2.domain.com Just grabbing in the air (since there are few hints about the problem): but are you using named pipes or TCP/IP? Are you allowed to communicate over the network with the protocol you are using?

« previous php.windows (#7554) next »