|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: CTlib and host_name() function
Date: Jun 3 1998 3:14PM
Vlad Markov writes:
> I am experiencing problems using the host_name function in CTlib, it is
> always returning null.
CTlib does not set the CS_HOSTNAME property by default, the way DBlib
does. To set it you must pass it in to new() or ct_connect() like so:
$dbh = Sybase::CTlib->ct_connect($user, $pwd, $server, $appname,
{CS_HOSTNAME=>$hostname});
or
$dbh = new Sybase::CTlib $user, $pwd, $server, $appname,
{CS_HOSTNAME=>$hostname};
Please see the Sybperl man page for further details.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@datamig.com -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
|