Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sybase Error Message catching
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
diasros...@gmail.com  
View profile  
 More options Jul 19 2012, 6:00 am
Newsgroups: comp.databases.sybase
From: diasros...@gmail.com
Date: Thu, 19 Jul 2012 03:00:08 -0700 (PDT)
Local: Thurs, Jul 19 2012 6:00 am
Subject: Sybase Error Message catching
In my Sybase PL/SQL block i can get the error code using @@ERROR.
But is there a way to get the error message.

I am looking for an equivalent to Oracle's SQLERRM

Quering sysmessages is not helping.

For Eg.
When i insert NULL in a NOT NULL column i need to catch and display the below error message which i would normally get if i execute the block in ASE ISQL.

'The column ABCD in table XYZ does not allow null values.'

Help appreciated.

Cheers,
Rosh


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bret@sybase.com  
View profile  
 More options Jul 19 2012, 6:30 pm
Newsgroups: comp.databases.sybase
From: "b...@sybase.com" <b...@sybase.com>
Date: Thu, 19 Jul 2012 15:30:48 -0700 (PDT)
Local: Thurs, Jul 19 2012 6:30 pm
Subject: Re: Sybase Error Message catching

No.  The error message text is sent to the client, but there is currently no way to access the full message from SQL.  There is an open feature request, CR 296395, for a new global string variable that would contain the full text of the most recently raised error (the message template from sysmessages with values filled in).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »