Skip to Content.
Sympa Menu

freetds - [freetds] Re: Unable to connect to MS SQL 2000

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Daniel Fazekas <fdsubs AT axelero.hu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Re: Unable to connect to MS SQL 2000
  • Date: Thu, 25 Mar 2004 05:29:55 +0100


On Mar 24, 2004, at 21:26, rconner AT commspeed.net wrote:

make sure the string specified in $myServer...

$myServer = "myserver";

is the name of a section with the correct information in freetds.conf...

# A typical Microsoft SQL Server 2000 configuration
[MyServer2k]
host = myserver
port = 1433
tds version = 4.2


for example if $myServer is set to "myserver" there should be a section titled "[myserver]"

You specify the hostname in the freetds conf. You don't tell the hostname to mssql_connect(). It's the .conf section name you have to use there.

--
fds





Archive powered by MHonArc 2.6.24.

Top of Page