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: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] freeTDS connect problem with SQLServer
  • Date: Wed, 24 Dec 2003 12:12:44 -0500

> 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.






Archive powered by MHonArc 2.6.24.

Top of Page