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: David Carter <david at solbors dot no>
Subject: 'Connection' test?
Date: Sep 3 1998 3:03PM

Hi,

I can't see a CTlib equivalent for the DBlib call $dbh ->DBDEAD. Is it
enough to say:

unless ($dbh) {
	print "The database connection is dead!\n";
	}

or is something more intricate needed?

Many TIA, 

David Carter, Internet Programming & Security  "Most of the shadows
SOL BÝrs AS, Oslo.                               in life are caused
david@solbors.no http://www.solbors.no/         by standing in your
Norway's Top Financial Site.             own sunshine" R.W. Emerson