Skip to Content.
Sympa Menu

freetds - RE: RE freetds performance

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: RE freetds performance
  • Date: Wed, 2 Oct 2002 12:34:49 -0400


> From: Max [mailto:max_mail2002 AT mail.ru]
> Sent: October 2, 2002 11:41 AM
>
> Telnet works perfectly!

That's too bad. That means we haven't found the problem. ;-)

> May be there are some settings to be changed in freetds.conf
> or somewhere else?

Maybe. How does tsql behave? If you do:

tsql -H <hostname> -p <port> -U <user> -P <passwd>

you bypass the freetds.conf (like a better telnet). If you do:

tsql -S <servername> -U <user> -P <passwd>

you use freetds.conf.

If one's faster than the other, let's have a look at freetds.conf. If
they're both OK, we have a PHP issue. There was one (possibly bogus) PHP
speed complaint a couple of weeks ago. I'm not predicting or suggesting
anything, just musing.

> FOR TDS:
> #./configure --with-tdsver=7.0 --enable-msdblib --enable-bmfix
> --with-gnu-ld
> --enable-shared --enable-static
...
>
> FOR PHP: ./configure --with-mysql --with-apxs=/www/bin/apxs
> --with-sybase-ct=/usr/local/freetds

One queer thing about these is that FreeTDS 0.60 installs by default in
/usr/local, but your PHP configuration is looking for /usr/local/freetds.
Based on the FreeTDS configure parameters you're showing, freetds.conf
should be in /usr/local/etc, not /usr/local/freetds/etc.

> (Well I read about freetds on
> http://www.phpbuilder.com/columns/alberto20000919.php3 and used
> instructions
> from that article. All instructions exept the patch. Do you
> know if there is a need of applying any patch to php?)

Not a bad article, although a little out of date. We keep a PHP patch
(#562746) on http://sourceforge.net/projects/freetds/, but it doesn't apply
to your situation.

Regards,

--jkl

> > On Wed, 2 Oct 2002 05:54:52 -0400, "Max"
> <max_mail2002 AT mail.ru> wrote:
> > > I'v got FreeBSD+Apache1.3.26+PHP4.2.3+FreeTDS0.6
> > > I can make queries to ms sql server 7.0 but it takes ages
> to connect to
> > > the server! Does anyone know what to do to speed up the
> connection?


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.





  • RE: RE freetds performance, Lowden, James K, 10/02/2002

Archive powered by MHonArc 2.6.24.

Top of Page