If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to check the meaning of a sqlcode?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-04, 20:41
r390gt1 r390gt1 is offline
Registered User
 
Join Date: May 2003
Posts: 27
Question how to check the meaning of a sqlcode?

there is a command

db2 ? 12345

to check meaning of a sqlstate number?
however, is there any command that can check the meaning of the sqlcode?

thanks in advance :-)
Reply With Quote
  #2 (permalink)  
Old 01-30-04, 20:45
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: how to check the meaning of a sqlcode?

if you get a error message, you can check ..

For eg SQL0911N

db2 "? sql0911n"

will dispalay the message text and description

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-01-04, 19:54
r390gt1 r390gt1 is offline
Registered User
 
Join Date: May 2003
Posts: 27
is it possible to lookup the sqlcode by the sqlstate?

Thanks

by the way, is it possible to lookup the sqlcode by the sqlstate?

Last edited by r390gt1; 02-01-04 at 20:21.
Reply With Quote
  #4 (permalink)  
Old 02-02-04, 10:56
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: is it possible to lookup the sqlcode by the sqlstate?

I don't think it is possible ..



Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On