Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

about error message

 
   Database Forums (Home) -> Sybase RSS
Next:  Log Shipping  
Author Message
haoliying

External


Since: Aug 07, 2005
Posts: 1



(Msg. 1) Posted: Sun Aug 07, 2005 6:04 am
Post subject: about error message
Archived from groups: comp>databases>sybase (more info?)

hello,i meet a problem!
when i write a store procedure ,i want to show error msg myself,so i
use @@error to point the error. the question is how can i find which
column induce the error just like the DBMS tell me when i run a sql in
isql?
pls help me!

 >> Stay informed about: about error message 
Back to top
Login to vote
bret5

External


Since: Dec 09, 2004
Posts: 61



(Msg. 2) Posted: Mon Aug 08, 2005 1:11 pm
Post subject: Re: about error message [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can generally get the error message template from
master..sysmessages where error = @@error. However, there is no way to
get any of the values (table name, page number, etc) that are
substituted into the error message outside of the client program
parsing the message it received (i.e. it has to be done outside of
TSQL)

There is an open feature request for a global variable that would
contain the full text of the most recent error raised, CR 296395.

 >> Stay informed about: about error message 
Back to top
Login to vote
bighead

External


Since: Aug 09, 2005
Posts: 2



(Msg. 3) Posted: Tue Aug 09, 2005 2:35 am
Post subject: Re: about error message [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thanks, i must find another way to show the error message.wowo......
bret DeleteThis @sybase.com wrote:
> You can generally get the error message template from
> master..sysmessages where error = @@error. However, there is no way to
> get any of the values (table name, page number, etc) that are
> substituted into the error message outside of the client program
> parsing the message it received (i.e. it has to be done outside of
> TSQL)
>
> There is an open feature request for a global variable that would
> contain the full text of the most recent error raised, CR 296395.
 >> Stay informed about: about error message 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Sybase All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]