VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
Error handling

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
PolarBear
Guest





PostPosted: Thu Aug 15, 2002 10:11 am    Post subject: Error handling Reply with quote

Hi All

While I'm testing dbExpress driver for Sybase I meet the next problem. I can't receive enough information about server errors.

If I try to execute a SQL statment, wich produce some server error, driver returns error message only (without error code).
If I try to execute a stored procedure, wich produce some server error, driver doesn't return any iformation about error.

Is it a bag?
Back to top
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Sun Aug 25, 2002 6:39 pm    Post subject: Error handling and message handling Reply with quote

>> If I try to execute a SQL statment, wich produce some server error, driver returns error message only (without error code).

You can use TSQLMonitor to comprehensively trace all messages that server sends to client. They have necessary format: MessageNumber, Severity, Text.
Yes, driver error messages must have the same format. This feature will be added to the next build.

>> I try to execute a stored procedure, wich produce some server error, driver doesn't return any iformation about error.

Sybase doesn't have exception's ideology as Oracle or Interbase. If one of SQL operators in a stored procedure fails server message with error description will be sent, but overall program flow doesn't interrupt. Thus, stored procedure will be completely executed.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PolarBear
Guest





PostPosted: Tue Sep 03, 2002 11:10 am    Post subject: Re: Error handling and message handling Reply with quote

VISOCO support wrote:
Sybase doesn't have exception's ideology as Oracle or Interbase. If one of SQL operators in a stored procedure fails server message with error description will be sent, but overall program flow doesn't interrupt. Thus, stored procedure will be completely executed.


It's really true. But Sybase sends information about all errors, which happens while pocedure was executing and I have to know about it.
Back to top
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Wed Sep 04, 2002 2:52 pm    Post subject: Reply with quote

Use TSQLMonitor.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group