[freetds] Connection Pooling
Lowden, James K
LowdenJK at bernstein.com
Fri Oct 29 16:53:18 EDT 2004
> From: Shaun Craig
> Sent: Friday, October 29, 2004 11:28 AM
>
> I downloaded the latest snapshot and installed with my current
freetds.conf
> and pool.conf, i can now tsql -S mypool -U sa -P ruler ok and can
query away
> so i was delighted with that!
OK, so it's a version issue. Good, I'm glad 0.63 will solve that
problem.
> i moved back into my client program and in dbopen i changed the
following,
> dbconn = dbopen(login,"mypool"); but it doesnt connect. i now know
that the
> whole connection pool server process works so it must be in my
application
> that is causing the problem. i also checked my code and found that the
only
> way i could connect via dbopen was by including the ip address instead
of the
> server name, LeocateServer wouldnt connect for me either.
That's too bizarre for words. tsql and dbopen use the same functions to
locate the server's ip address and make the connection. They don't
accept ip addresses; they take only freetds.conf dataserver names.
You might want to try bsqldb, too, because it uses db-lib (like your app
does). If it works -- which it will ;-) -- then, really, it's time to
look for something simple.
Such as, did you recompile and relink your application? Does you build
environment point to the new version's location? Stuff like that.
If you're sure you've done everything right but still can't connect,
turn on TDSDUMP and TDSDUMPCONFIG just before you start your app. It
will show how the conf files are being searched, and what they're being
searched for.
I think you're almost home. You have a working pool server and FreeTDS
utilities. All that's left is a small matter of programming.
--jkl
> > > From: Shaun Craig
> > > Sent: Friday, October 29, 2004 8:20 AM
> > >
> > > name of pool server in freetds.conf = mypool
> > > i can tdspool mypool ok come up with
> > > Found conf file in /usr/local/etc/pool.conf reading sections
> > > Listening on port 5000
> > > waiting for a connect
> > >
> > > so this lets me think that im connect to MS SQL Server ok
> >
> > Correct. Your configuration files are also fine.
> >
> > > but when i try the following
> > > tsql -S mypool -U sa -P ruler i get the following errors
> > > locale is
> >
> >
"LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;
> >
LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUR
> > EMENT=C;LC_IDENTIFICATION=C"
> >
> > > locale charset is "UTF-8"
> > > Msg 20004, Level 9, State 0, Server OpenClient, Line 0
> > > Read from SQL server failed.
> > > Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> > > Login incorrect.
> > > There was a problem connecting to the server
> > >
> > > connection pool server crashes with a segmentation fault
> >
> > I tested the pool server last night (using the latest development
> > snapshot). No problem. It should work. You might want to try it,
too,
> > both because it includes Brian's work from earlier this year, and
> > because we're due for a new release soon.
-----------------------------------------
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 we do not accept account orders and/or instructions by e-mail, and therefore will not be responsible for carrying out such orders and/or instructions.
If you, as the intended recipient of this message, the purpose of which is to inform and update our clients, prospects and consultants of developments relating to our services and products, would not like to receive further e-mail correspondence from the sender, please "reply" to the sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New York, NY 10105.
More information about the FreeTDS
mailing list