[freetds] dblib and freetds.conf
James K. Lowden
jklowden at freetds.org
Sun Nov 23 12:49:46 EST 2008
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
More information about the FreeTDS
mailing list