|
|
sybperl-l Archive
Up Prev Next
From: Troy Taylor <ttaylor at JCLLC dot COM>
Subject: RE: trapping errors with db-lib
Date: Mar 13 2000 9:56PM
Thanks Michael!
Appreciate your help.
Troy
-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Monday, March 13, 2000 2:42 PM
To: SybPerl Discussion List
Subject: Re: trapping errors with db-lib
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
|