Re: Trying to get FreeTDS to work

From: Date: Fri, 28 Jul 2000 13:23:12 +0000
Subject: Re: Trying to get FreeTDS to work
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1602@lists.php.net to get a copy of this message
"Sanders, Nicholas" wrote: > > I'm getting the following error > > Warning: Sybase: A link to the server could not be established in > /home/websites/wac/mssql/mssql1.php on line 15 > > I think its the interfaces file for FreeTDS, below is what I've got > > regent1 > query tcp ether 158.234.4.24 4000 > master tcp ether 158.234.4.24 4000 > Nick, FreeTDS can have the TDS version in the interfaces file instead of "ether". And Microsoft SQL Server by default uses port 1433 for the TDS protocol. My interfaces looks like this: Grafspee query tcp tds4.2 192.168.0.9 1433 master tcp tds4.2 192.168.0.9 1433 Your interfaces will (probably) look like this: regent1 query tcp tds4.2 158.234.4.24 1433 master tcp tds4.2 158.234.4.24 1433 Just remember to restart Apache after making a modification like this, and be sure the SYBASE environmental variable is set to the root of the FreeTDS installation. Steven Campbell

« previous php.db (#1602) next »