sybperl-l Archive
Up Prev Next
From: "Lenga, Yair " <yair dot lenga at citi dot com>
Subject: How to Specify hostname and port in the connection string
Date: Jul 16 2007 3:49PM
Hi,
Does anyone know if there is a way to specify the hostname and port
number in the connection string. E.g.
"dbi:sybase:hostaddr=1.2.3.4:port=1234", instead of using a static
interface file.
I'm writing a program which need to access arbitrary database server.
The other alternative that I can think about is to create a temporary
interface file with the correct parameters, and then use it for the
connection string
"dbi:sybase:interfaces=/tmp/interfaces:server=myserver".
Thanks
Yair Lenga
|