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: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Sybase ASA 7, unixODBC problem
  • Date: Mon, 8 Nov 2004 15:52:31 -0500

> From: Gene Dymarskiy
> Sent: Monday, November 08, 2004 10:49 AM
>
> > The correct server name can be obtained from the odbc.ini
> > file by specifying the keys "server"' and "address".
> > "address" is used to determine the host name/ip address of
> > the database server and "server" is used as the name sent off
> > with the login packet.
>
> I can confirm that this works. Do not define "Servername" in odbc.ini
>
> Instead specify Server, Address and Port keys. If you do not specify
> "port" key it defaults to 4000.
>
> Sample odbc.ini entry
>
> [ASA7]
> Description = ASA Sybase
> Driver = /usr/local/lib/libtdsodbc.so
> Server = [ASA server name]
> Address = [IP address of the ASA server]
> Port = 2638
> Trace = Yes
> TraceFile = /tmp/odbc_sql.log
>
> This is much better than using DSQUERY. For one you can specify
> connections to multiple ASA servers ;)

Ugh. OK, it works. That's about the best that can be said for it, not
that that's nothing. I mean, to pass a database name, we have to give
up minor features like DNS-lookup of the server's address. :-/

Expect this to change one day. When you upgrade, check the README. At
least, there'll be an attribute in the DSN or freetds.conf entry that
supports a default database name. Maybe maybe, we'll add 'DatabaseName'
as a connection string attribute, like (AIUI) Sybase does. (cf.
http://manuals.sybase.com/onlinebooks/group-sas/awg0703e/dbrfen7/@ebt-li
nk;pt=5012;uf=0?target=0;window=new;showtoc=true;book=dbrfen7 ).

They also mention that if no database name is indicated, you'll be
connected to the Master database by default. Is there such thing in
ASA? If so, that should be our default, too. As far as we know,
non-ASA servers ignore this field, so we could set it to 'master' by
default all the time, not just for ASA servers.

--jkl

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






Archive powered by MHonArc 2.6.24.

Top of Page