Error db2

forum.sqlhost (2000-2005)
Ivano Zulli

Error db2

Post by Ivano Zulli » 22 Feb 2001, 10:50

 Posted by:  Ivano Zulli 

Hi all,
how can I trap error code message from DB2 with my client CTD?
When I have an error in DB2 this error code is different from an error
displayed with SQLError.
Why?
Thanks a lot.

Thomas Wiedmann

Error db2

Post by Thomas Wiedmann » 22 Feb 2001, 12:17

 Posted by:  Thomas Wiedmann 

Hi Ivano,

what kind of error do you have ?

CTD Version ?
DB2 Version ?

Regards,
Thomas

Ivano Zulli

Error db2

Post by Ivano Zulli » 23 Feb 2001, 11:58

 Posted by:  Ivano Zulli 

Dear Thomas,
I use CTD application and DB2 with SqlHost.
When I have an error sql like Lock or Duplicate Key the message send me is
not equal with the error number code describe into reference manual DB2. CTD
send another error code.
E.g.
DB2 generate 60023
CTD send me -3980

Why?
How can I trap DB2 error directly?
Thanks

Thomas Wiedmann

Error db2

Post by Thomas Wiedmann » 23 Feb 2001, 13:43

 Posted by:  Thomas Wiedmann 

Hi Ivano,

sorry, I don't know SqlHost. I work only with DB2/NT.

BTW: there is some other forum here on talkto....

forum.sqlhost

This look like some problems with Datatype. Try DCC.INI.
Get you any Error Text ? Try to analyse the original DB2 Error message text.

Regards,
Thomas

--
Thomas Wiedmann
Krebsregister BW

Return to “forum.sqlhost”

Who is online

Users browsing this forum: [Ccbot] and 0 guests