Skip to Content.
Sympa Menu

freetds - Re: [freetds] Open dblib connection without config file

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Open dblib connection without config file
  • Date: Mon, 11 Aug 2008 09:59:44 -0400

Gregor Püttmann wrote:
> is there a way to open a connection via dblib without using a config
> file?

If the name you provide isn't found in any configuration file, the library
will attempt first to parse it as a numeric address and, failing that,
will try to resolve it via DNS. You can append the port number to the
name to override the default, and use TDSVER or dbsetversion() to set the
version number. (See dblib.c::dbsetversion for valid values.)

$ TDSVER=7.0 tsql -S AC03NJS0878:2500 -U $U -P $P
locale is "C"
locale charset is "646"
1>

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page