Skip to Content.
Sympa Menu

freetds - [freetds] dbopen: avoiding config with direct host/port

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Erik Smith <cruisercoder AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] dbopen: avoiding config with direct host/port
  • Date: Sun, 24 Apr 2016 08:53:09 -0700

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




Archive powered by MHonArc 2.6.24.

Top of Page