freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] dbopen: avoiding config with direct host/port
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: erik AT cruiserhouse.com, FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] dbopen: avoiding config with direct host/port
- Date: Tue, 26 Apr 2016 11:09:41 +0100
2016-04-24 16:53 GMT+01:00 Erik Smith <cruisercoder AT gmail.com>:
> Is there currently a way to open a connection without referencing the
> config files? This has been asked before but it's unclear if this is
> possible:
>
> https://lists.ibiblio.org/sympa/arc/freetds/2010q4/026425.html
>
> There doesn't seem to be a way to do this using this call:
>
> DBPROCESS *dbopen(LOGINREC * login, const char *server)
>
> There are fields within LOGINREC (such as host & port) that could be used
> to override config, but that doesn't seem to be the way it was implemented.
>
> Any ideas?
>
> erik
Fill in LOGINREC as much information you need (like protocol version)
then use <host>:<port> or <host>\<instance> as server. dbopen will try
to read from configuration, fall back to server parsing host and
port/instance then override settings with your LOGINREC informations.
Frediano
-
[freetds] dbopen: avoiding config with direct host/port,
Erik Smith, 04/24/2016
-
Re: [freetds] dbopen: avoiding config with direct host/port,
Frediano Ziglio, 04/26/2016
-
Re: [freetds] dbopen: avoiding config with direct host/port,
Velichko Yuriy, 04/27/2016
- Re: [freetds] dbopen: avoiding config with direct host/port, Frediano Ziglio, 04/27/2016
-
Re: [freetds] dbopen: avoiding config with direct host/port,
Velichko Yuriy, 04/27/2016
-
Re: [freetds] dbopen: avoiding config with direct host/port,
Frediano Ziglio, 04/26/2016
Archive powered by MHonArc 2.6.24.