Skip to Content.
Sympa Menu

freetds - Re: [freetds] Sybase ASA 7, unixODBC problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Sybase ASA 7, unixODBC problem
  • Date: Sat, 6 Nov 2004 18:58:15 -0500

lsunley AT mb.sympatico.ca wrote:
> >The issue, we know: the ODBC driver does not set the servername field
> >of the login packet before connecting. It should call tds_set_server()
> >when it discovers the servername, although it's not clear what "server
> >name" means when freetds.conf isn't used.

> Is the servername supposed to be the resolved host name of the server?

No. The "servername" in this case is a field passed to the server in the
login packet. It's the dataserver name, the [servername] in the
freetds.conf file, the name the client application uses to open a
connection.

Most servers ignore it, afaik. ASA requires it, because it uses it as the
name of the database to "start".

The ct-lib and db-lib libraries fill the field correctly; the ODBC driver
stuffs in 'SYBASE' instead. That be the problem.

Hope that's clear. :-)

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page