Getting PL/SQL back-end errors into ADODB.Errors collection 
Author Message
 Getting PL/SQL back-end errors into ADODB.Errors collection

I have a VB front-end application that calls an Oracle stored
procedure in the back-end. My problem is that, in my VB front-end, the
connection object's error collection is never populated with the error
that occurred. Currently, I am getting a constraint error which I
would like to trap from VB and I cannot. I used to do this all the
time in SQL Server.

Any ideas?



Sun, 22 Aug 2004 02:52:52 GMT  
 Getting PL/SQL back-end errors into ADODB.Errors collection
Have you trap the exception withing the sp ?

If you have trapped the error within the stored procedure, it wont
return the error to ado.

--
hth
Hirantha
Please reply only to the newsgroups.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sun, 22 Aug 2004 05:00:46 GMT  
 Getting PL/SQL back-end errors into ADODB.Errors collection
On Tue, 05 Mar 2002 13:00:46 -0800, Hirantha Hettiarachchi

Quote:

>Have you trap the exception withing the sp ?

>If you have trapped the error within the stored procedure, it wont
>return the error to ado.

>--
>hth
>Hirantha
>Please reply only to the newsgroups.

>*** Sent via Developersdex http://www.developersdex.com ***
>Don't just participate in USENET...get rewarded for it!

I am trapping the error within the stored procedure but I am also
raising the errors from the procedure in the EXCEPTION handler. It is
this error that I want to trap in the ADODB.Errors collection and I
cannot.


Sun, 22 Aug 2004 06:06:26 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Error 3146 when trying to update dynaset with SQL server back-end

2. Not getting back error messaqges from Sql server

3. Trying to Create a communicator for VB.net Front End and SQL 2000 back end

4. VB Front end dll loses connection to back end SQL server db after an hour

5. ADODB.Errors Collection is empty in a VB COM+ registered component

6. ADODB.Connection.Errors collection

7. Compacting a back-end-DB - in-use-error

8. Error 20639: SQL Expression error - Error in creating SQL Expression COM Parser (cpeaut32)

9. Not getting error message back from dataset delete

10. Getting image into field (SQL 7) and getting it back out

11. Please Help - Error ADODB.Connection Error

12. Bogus Error Msg 3137: Missing semicolon at end of SQL statement

 

 
Powered by phpBB® Forum Software