Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Handling Server Error messages
Date: Apr 24 1998 8:54PM
Johnson, Phil writes:
> I'm playing around with the script, "sql.pl" in the sybperl "eg"
> directory and using the first example in that script.
> It works well, however, at the top of the output, I receive an info
> message which I want to ignore:
> Msg 5703, Level 10, State 0
> Server 'DCAT_DAL1_G_ACP',
> Changed language setting to 'us_english'
> This is printed to STDERR, and, according to Sybase:
> These are all informational messages and may be ignored. If you wish to
> suppress them, add the following line to your SERVER message callback
> if (msgno==5701 || msgno==5703 || msgno==5704)
> These messages cannot be suppressed on the server side, they must be
> handled on the client side.
Look at lib/sybutil.pl. ct_callback() is for Sybase::CTlib. The sql()
subroutine uses Sybase::DBlib.
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com