note 39937 added to function.mssql-connect
| From: | stephan at towli dot ch | Date: | Mon, 16 Feb 2004 12:12:37 +0000 |
| Subject: | note 39937 added to function.mssql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65207@lists.php.net to get a copy of this message | ||
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);
----
Manual Page -- http://www.php.net/manual/en/function.mssql-connect.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39937
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39937&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39937&report=yes
Search -- http://master.php.net/manage/user-notes.php