Skip to Content.
Sympa Menu

freetds - Re: [freetds] freeTDS connect problem with SQLServer

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steven Orton <sorton9999 AT usa.net>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] freeTDS connect problem with SQLServer
  • Date: Wed, 24 Dec 2003 12:31:40 -0500


I figured it out!! I now have data coming at me using both the freeTDS and
the OpenLink drivers:) Merry Christmas to me !! Anyway, I think it's the
classic case of both the manager and the driver looking for its expected
token-value pairs. I did what you asked and consulted the manual to find the
page about "ODBC-only" connections and voila, it works.
Actually I did NOT figure IT out, I figured out how to follow directions!!

Thanks a lot and Happy Holidays....steve---


"Lowden, James K" <LowdenJK AT bernstein.com> wrote:

> > From: Steven Orton [mailto:sorton9999 AT usa.net]
> > Sent: December 24, 2003 11:49 AM
> >
> > Now I'm getting a little confused already. Isn't it the
> > driver manager that
> > dictates the way in which these files are read and what
> > token-value pairs it's
> > looking for? The entry "ServerType" in my odbc.ini file
> > refers to an entry in
> > OpenLink's openlink.ini file which then tells where the
> > database is. Since I
> > am using OpenLink's manager, isn't that what is expected?
>
> I'm not familiar with that DM (and not all that well versed in DMs in
> general). If so, I'll have to rewrite the documentation.
>
> I note:
>
> $ grep -c odbc.ini src/odbc/connectparams.c
> 14
>
> >From what I see in the code, eventually whatever you're doing boils down
to
> calling SQLConnect() with a DSN. You'll find in src/odbc/odbc.ini that
> SQLConnect() consults odbc.ini to convert the DSN into a TCP/IP address,
> possibly via a dataserver name in freetds.conf.
>
> For even more holiday fun, turn on TDSDUMPCONFIG and watch FreeTDS search
> its files for your server.
>
> HTH.
>
> --jkl
> >
> > "Lowden, James K" <LowdenJK AT bernstein.com> wrote:
> > > > From: Steven Orton [mailto:sorton9999 AT usa.net]
> > > > Sent: December 24, 2003 9:01 AM
> > > >
> > > > ****** Exception from client ******
> > > > Connecting with: "DSN=MyFreeTDS;UID=smmttdev;PWD=smmttdev1"
> > > >
> > > > <PDIConnection::DataConnect> -- SQL Exception: Failed to
> > connect to
> > > > datasource: [FreeTDS][SQL Server]Unable to connect to data source
> > > > SQL CMD: "SELECT * FROM vw_platform_base_params WHERE
> > > > db_context_ID = 2"
> > > >
> > > > <PDIResultSet::Execute> -- No valid connection!
> > > > ***********************************
> > > >
> > > > ****** freeTDS Dump ***************
> > > > Starting log file for FreeTDS 0.62.dev.20031218
> > > > on 2003-12-23 21:42:15 with debug level 99.
> > > > iconv to convert client-side data to the "ISO-8859-1"
> > character set
> > > > 21:42:15.615244 tds_iconv_info_init: converting
> > > > "ISO-8859-1"->"UCS-2LE"
> > > > 21:42:15.615272 IP address pointer is NULL
> > > > 21:42:15.615292 Server SYBASE not found!
> > > > ***********************************
> -----------------------------------------
> 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.
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>



-------------------------------
Steven Orton
sorton9999 AT usa.net
--
"Put your hand on a hot stove for a minute,
and it seems like an hour.
Sit with a pretty girl for an hour, and it
seems like a minute. THAT'S relativity."
-- Albert Einstein
-------------------------------






Archive powered by MHonArc 2.6.24.

Top of Page