| Author |
Message |
PolarBear Guest
|
Posted: Thu Aug 15, 2002 10:11 am Post subject: Error handling |
|
|
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
|
Posted: Sun Aug 25, 2002 6:39 pm Post subject: Error handling and message handling |
|
|
>> 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 |
|
 |
PolarBear Guest
|
Posted: Tue Sep 03, 2002 11:10 am Post subject: Re: Error handling and message handling |
|
|
| 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
|
Posted: Wed Sep 04, 2002 2:52 pm Post subject: |
|
|
| Use TSQLMonitor. |
|
| Back to top |
|
 |
|