Skip to Content.
Sympa Menu

freetds - [freetds] FreeTDS, PHP and multiple instances

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "wettengel, kay" <kay.wettengel AT stahl.de>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] FreeTDS, PHP and multiple instances
  • Date: Wed, 12 Mar 2003 07:43:01 +0100

Hallo!
Since a few weeks I've just compiled the FreeTDS-Support into the php-module
on my linux-server. And it is very easy to contact a simple MS SQL-Server
now.
But as a matter of fact we do have more than one SQL-Server. The latest is a
MS SQL-Enterprise Server with more than one instance of MS SQL-Server
insalled. Did any of you have that problem before?
How can I tell php which instance to connect to?

$dbi = mssql_connect($dbhost, $dbuser, $dbpass);
mssql_select_db($dbbank);
$sql = "some sql-query";
$res = mssql_query($sql);
mssql_close($dbi);

Thank you for any help!
Sincerely
Kay




Archive powered by MHonArc 2.6.24.

Top of Page