Skip to Content.
Sympa Menu

freetds - Re: [freetds] PHP5-MsSQL Error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Brian Morton" <bmorton AT secureworks.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] PHP5-MsSQL Error
  • Date: Fri, 1 Sep 2006 08:42:45 -0400

Your points are all correct and have merit. I have found that most systems I
encounter are configured for TDS 8.0 lately since it is the default configure
behavior. You have probably been TDSing a lot longer than I have though.

________________________________

From: freetds-bounces AT lists.ibiblio.org on behalf of jklowden AT schemamania.org
Sent: Fri 9/1/2006 12:25 AM
To: FreeTDS Development Group
Subject: Re: [freetds] PHP5-MsSQL Error



On Wed, Aug 30, 2006 at 08:02:18PM -0400, Brian Morton wrote:
> I apologize for the incorrect information. Re-reading the error message,
> it was a little ridiculous to think that the connection was failing.
> However, the piece about adding the port number is not a bug AFAIK. I
> generally do not use a freetds.conf when using the mssql extension. I have
> always build mssql against the freetds libs, and never put a reference to
> my server in the freetds.conf.

That's fine, if it suits your purpose; that's why it's possible. I just
didn't want the impression left behind that the port has to be specified
that way.

> That is probably why it requires the use of the port in the connect
> function. I do this because my code is more portable that way and I don't
> have to stick another config file elsewhere in the package or program.
> However, it is not relevant to this issue, that is for sure.

OK, fsvo 'portable'. Your code then has to manage the TDS version, or it
assumes that TDS 7.0 (or whatever) is the one true way. Or the user
has to set the TDSVER variable. I can see how it's easier to distribute
something that doesn't need it's own ancilary configuration file. I would
wager, though, that in most environments that's not sufficiently flexible.

Regards,

--jkl

_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


<<winmail.dat>>




Archive powered by MHonArc 2.6.24.

Top of Page