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: Adam Witney <witneya at nmripo dot nmri dot nnmc dot navy dot mil>
Subject: finding out no. of records returned
Date: Apr 12 1999 8:13PM

Hello,

previously i used perl to interact with a Sybase ASA v6.0 server through
ODBC, i could print the number of records returned by a SELECT statement
using the line

print $sth->rows;

i have now switched to ASE 11.0.3.3 for linux and am using DBD-Sybase and
DBI, however the above line now always returns -1. Does this line not
function with the DBI and DBD-Sybase, and if so is there a simple
equivalent?

thank you

adam

Dr Adam Witney,
Malaria Program,
Naval Medical Research Center,
12300 Washington Avenue,
Rockville, MD 20852

Tel: 301 295 1821
Fax: 301 295 6171