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: Michael Peppler <mpeppler at MBAY dot NET>
Subject: ct_sql error ??
Date: Oct 7 1998 1:30PM

Mike Reilley writes:
 > Hi All,
 > 
 > I am new to SYBPERL obtained my copy from ACTIVESTATE
 > 
 > the following code gives me the following error:
 > 
 > #!/usr/local/bin/perl
 > 
 >     use Sybase::CTlib;
 > 
 >     ct_callback(CS_CLIENTMSG_CB, \&msg_cb);
 >     ct_callback(CS_SERVERMSG_CB, "srv_cb");
 >     $uid = 'Mikey';                 $pwd = 'XXXXXX'; $srv = 'F50_SYBASE';
 > 
 >     $X = Sybase::CTlib->ct_connect($uid, $pwd, $srv);
 >    
 >     
 > 
 >      @back  = X-> ct_sql("use HEPROD");
 > 
 > ERROR:
 > 
 >   Can't locate object method "ct_sql" via package "X" at ......

Where are the Sybase modules installed? Try to look in Sybase/CTlib.pm 
and see if ct_sql() is there...

Michael
-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@mbay.net       -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com