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: dbsetopt in DBD::Sybase
Date: Jun 21 1999 11:38PM

Rick Nicoletti writes:
 > Hi all, I was wondering if anyone knew how to turn on statistics
 > io in DBD::Sybase.
 > 
 > For instance, using Sybase::DBlib I can turn on statistics io by:
 >     $dbh->dbsetopt(&DBSTAT, "IO");
 > and then capture the text in the message handler.
 > 
 > I'd like to turn on statistics io using DBI/DBD::Sybase (and capture
 > the statistics text separately from normal row data), but I can't 
 > figure out how.  I tried:
 >     $dbi_handle->do("set statistics io on");
 > but that seemed to confuse later fetches.

Hmmm.. That should work.

What sort of problems are you seeing when you use the do() method for
this?

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