Re: mssql_connect problem

From: Date: Wed, 17 Dec 2003 19:55:38 +0000
Subject: Re: mssql_connect problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172899@lists.php.net to get a copy of this message
Omar wrote:
Hello. I have a sql server named CLUSTER01 (on win 2k servers, iis, etc), i try to connect to it : $db_conn = mssql_connect("CLUSTER01", $db_usuario, $db_password); and it gives me this message: Warning: 0 is not a MS SQL link index in x The user name and password are correctly created in the logins of the sql server. What else could be? Thank you for your help.
Have you tried: Maybe substitute sa for the user and the sa password (JUST FOR TESTING). Try the FQDN of the server, or just put the IP address. $server = "server.domain.com"; $user = "dbuser"; $password = "dbpassword"; mssql_connect($server,$user,$password); Check php.ini, uncomment out extension=php_mssql.dll If your running php on a server that does not have SQL Server on it, I think at least you need to install the SQL client tools. Good luck! Mike Smith

« previous php.general (#172899) next »