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 Sybase errors...
Date: Feb 9 2000 10:39PM

Fuerte, Hector BGI SF writes:
 > Hi!
 >  
 > How do you trap this sql error in Perl:
 >  
 > Msg 2601, Level 14, State 3:
 > Server 'SA_SBU', Line 1:
 > Attempt to insert duplicate key row in object 't_web_xing_stats_hist' with
 > unique index 'XPKt_web_xing_stats_hist'
 > Command has been aborted.
 > (0 rows affected)

Check the dbmsghandle() or ct_callback() functions.

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