Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: catching errors with oracles OLEDB provider for ADO

Re: catching errors with oracles OLEDB provider for ADO

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Sun, 26 Oct 2003 23:35:29 +0100
Message-ID: <4viopvsqu0v3kmv4imkst6br1imh8jnn5h@4ax.com>


On Mon, 20 Oct 2003 08:04:43 +0200, "news" <heiko.folkerts_at_david-bs.de> wrote:

>Hi,
>we use oracles OLEDB provider to access an oracle 9.2.0 database. when a
>trigger e.g. an before insert trigger executes raise_application_error the
>client receives the exception as an exception from the framework instead of
>an exception from within the call to rs.addnew. So when running an addnew
>statement execution is continued in the handler for unknown exceptions from
>the framework. The microsoft provider raises the exception in the rs.addnew
>statement so it can be caught and handled.
>We can't use the microsoft OLEDB provider for oracle, because4 it supports
>no blobs.
>Questions:
>1. Is there a way to make the oracle OLEDB provider raise the exception
>within the rs.addnew call?
>2. is there a way to use blobs with microsoft so that we could change to the
>MS provider?
>many thanks
>Heiko
>

1 Just put
RAISE
in your default exception handler
2 Why on earth would you want to do that. Microsux drivers always are lagging back and have compatibility issues and Microsux is not interested in implementing all Oracle features.

--
Sybrand Bakker, Senior Oracle DBA
Received on Sun Oct 26 2003 - 16:35:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US