RE: Warning: MS SQL: Unable to connect to server
| From: | Carlos Andre Marques Moreira | Date: | Thu, 08 Aug 2002 16:36:39 +0000 |
| Subject: | RE: Warning: MS SQL: Unable to connect to server | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-15178@lists.php.net to get a copy of this message | ||
Have you instaled MDAC in the server that is running PHP? Or you could just
copy the file ntwdblib.dll to windows\system32 folder in the server that is
running PHP.
I'm running PHP as CGI and connecting to MSSQL trough mssql functions.
Carlos André Marques Moreira
SENAI-CE / CETAE
camoreira@sfiec.org.br
-----Original Message-----
From: Christoph Grottolo [mailto:cg@gordimer.net]
Sent: quarta-feira, 7 de agosto de 2002 17:14
To: php-windows@lists.php.net
Subject: Re: Warning: MS SQL: Unable to connect to server
Hi
Frast Andreas wrote:
> I have installed PHP 4.2.2, phpinfo() shows well, also the extensions
> PHP_MSSQL seems OK.
> Now then I would connect from a PHP-Script to the MSSQL-Database (DB
> is on a other server and goes well) following Warning comes:
>
> MS SQL: Unable to connect to server: DBName in
> D:\Inetpub\Project1\test_sql.php on line 2
In the same situation, I can only connect with PHP running as ISAPI, PHP as
CGI only connects to MSSQL over ODBC or ADO.
Christoph