freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Brian Bruns" <camber AT ais.org>
- To: freetds
- Subject: Re: interfaces file
- Date: Wed, 11 Nov 1998 11:10:45
The WIN.INI behavior is inherited from Sybase's dblib 4.2. As of 10.0
Sybase switched to using a file called SQL.INI in the %SYBASE% directory.
The Unix stuff, of course, has always used interfaces in $SYBASE.
Great idea on the .interfaces file. But, could it check that prior to
checking $SYBASE/interfaces, that would be more in line with other unix
programs, and would allow a user to override a host setting, a desirable
thing.
My other question would be if it doesn't find the server in the interfaces
file and trys to use it as a hostname where does it get the port number?
But it sounds good. The interfaces file support is sort of broken. It
needs to support name lookup, (right now it just accepts an IP addr,
IIRC).
By the way, I got some simple ODBC stuff working. I'll check it in
tonight. (It runs through a result set, no binding...but it's a step in
the right direction).
On 11/11/98, "Craig Spannring <cts AT internetcds.com>" wrote:
> As far as I can tell the dbopen(login, servername) function in
> DB-Library for SQLServer looks in the WIN.INI file for a logical
> server name given in 'servername' and if it doesn't find one there it
> tries to connect to an actual server with that name.
>
> The current implementation doesn't do that. Would anyone object if
> the current implementation was changed so that dbopen() tried opening
> a server in this order-
>
> 1) Look for the a logical server in the file set by the
> set_interfaces_file_loc() function
> 2) If set_interfaces_file_loc() has not been called look for the
> logical server in $SYBASE/interfaces
> 3) If the logical server was not found then search for it in the
> $HOME/.interfaces file.
> 4) If no matching logical server was found then assume the user
> specified an actual server name.
>
> --
> =======================================================================
> Life is short. | Craig Spannring
> Ski hard, Bike fast. | cts AT internetcds.com
> --------------------------------+------------------------------------
> Any sufficiently perverted technology is indistinguishable from Perl.
> =======================================================================
-
interfaces file,
Craig Spannring, 11/11/1998
- <Possible follow-up(s)>
- Re: interfaces file, Brian Bruns, 11/11/1998
- Re: interfaces file, Gregg Jensen, 11/11/1998
- Re: interfaces file, Craig Spannring, 11/11/1998
- Re: interfaces file, Craig Spannring, 11/12/1998
- Re: interfaces file, Brian Bruns, 11/12/1998
Archive powered by MHonArc 2.6.24.