note 39937 deleted from function.mssql-connect by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Dec 2008 19:48:19 +0000 |
| Subject: | note 39937 deleted from function.mssql-connect by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147879@lists.php.net to get a copy of this message | ||
Note Submitter: stephan at towli dot ch
----
Applies to : IIS 5.0, PHP 4.3.4, MS-SQL 2000
If you try to connect to a host with multiple SQL-Server instances, you have to copy the
ntwdblib.dll from a MS SQL 2000 installation to the system32 directory of your webserver.
The ntwdblib.dll bundled with php 4.3.4 does not support multpiple server instance.
I used the DLL version 2000.80.194.0 that came with MS SQL Server 8.00.194.
Example:
$dbhost="server_name\instance_name,port_number";
$dbuser="foo";
$dbpass="foo";
$dbname="foo";
$db=mssql_connect($dbhost,$dbuser,$dbpass);
mssql_select_db($dbname,$db);