How to Specify hostname and port in the connection string
"Lenga, Yair " <[email protected]> Mon, 16 Jul 2007 11:49:28 -0400
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
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