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 peppler dot org>
Subject: Re: Problems after installing MS SQLServer service pack 3
Date: Feb 9 2001 9:09PM

Márcio Paulo Guedes writes:
 >     After installing MS SQLServer service pack 3, my perl programs doesn't
 > work anymore. After run a very simple perl program like this:
 > 
 > 
 >  #!/usr/local/bin/perl -w
 > use strict;
 > use Sybase::CTlib;
 > my $dbh = new Sybase::CTlib 'sa','','ctgf_n2';
 > my $restype;
 > my @rows;
 > $dbh->ct_execute("select * from bobinas..qui_tanques order by tanque");
 > while($dbh->ct_results($restype) == CS_SUCCEED) {
 >    next unless $dbh->ct_fetchable($restype);
 >    while(@rows = $dbh->ct_fetch) {
 >         print "$rows[0]\n";
 >    }
 > }
 > 
 > system says me:
 > 
 > Can't call method "ct_execute" on an undefined value at ./sp3.pl line 7.
 > 
 > I'm using sybperl 2.13 in RedHat 6 linux machine, with Freetds 0.50

This is likely a problem with FreeTDS in conjunction with the SP3
service pack.

I suggest taking this up with the FreeTDS folks.

Michael
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com