PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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