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: trapping errors with db-lib
Date: Mar 13 2000 9:41PM

Troy Taylor writes:
 > I have spent hours looking through the Sybperl DBLib docs and cant figure
 > out how to trap errors like this:
 > 
 > Msg 102, Level 15, State 1
 > Server 'sybaseserver', Line 4
 >         Incorrect syntax near 'searchterm'.
 > DB-Library error:
 >         General SQL Server error: Check messages from the SQL Server.

See the dbmsghandle() and dberrhandle() calls, and the sample error
handlers in lib/sybutil.pl in the sybperl distribution.

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