Skip to Content.
Sympa Menu

freetds - Re: [freetds] dblib and freetds.conf

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: mkejohnston AT yahoo.com, FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] dblib and freetds.conf
  • Date: Sun, 23 Nov 2008 12:49:46 -0500

Mike Johnston wrote:
> Is there a way to specify the server/port etc without having any entries
> in the freetds.conf file?

http://www.freetds.org/reference/a00286.html#ga23

Yes. ct-lib and db-lib both end up calling the libtds function
parse_server_name_for_port().

Use the "form server_hostname:port". You don't need to provide the port
if you're using the default. Remember that the TDS version is controlled
by the compiled-in default or the environment variable TDSVER. You can
also use TDSPORT.

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page