![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, In general we connect to Sybase server by using it's alias name like shown below. dblogin('dbuser','dbpassword', 'SYBASE_SERVER'); But is there any to connect using underlying host (place where SYBASE server resides) and port number as shown below? dblogin('dbuser','dbpassword', '100.100.100.100:1400'); |
#3
| |||
| |||
|
|
On Fri, 23 Apr 2004 09:00:32 -0700, durga wrote: Hi, In general we connect to Sybase server by using it's alias name like shown below. dblogin('dbuser','dbpassword', 'SYBASE_SERVER'); But is there any to connect using underlying host (place where SYBASE server resides) and port number as shown below? dblogin('dbuser','dbpassword', '100.100.100.100:1400'); No, not with DB_library. Recent CT-Library apps (12.5.1, I think) can use this format (I forget the exact name of the property you need to set.) The work-around would be to create a temporary interfaces file, and then use dbsetifile() to use that interfaces file to connect. BTW - this looks like you're using perl, because in C you'd use dbopen() (dblogin() only returns a new LOGINREC). Michael |
![]() |
| Thread Tools | |
| Display Modes | |
| |