Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 "Rais Error" from the stored procedure is not getting Trapped as SQLException in Java

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-02-28 : 07:46:38
priya writes "We have a Stored Procedure written for SQLServer. This stored procedure is raising the Error by using the below API

RAISEERROR('MESSAGE',18,1)

We are executing this stored procedure from a Java Program, but the error thrown by the stored procedure is not appearing as an Exception in Java. We are using MS SQL Server JDBC Driver."

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-02-28 : 07:48:03
These kinds of errors are processed by the data access library, and it's up to the library to communicate them to the application. I know that ADO has an Errors collection on the Connection object, JDBC may have something similar.
Go to Top of Page
   

- Advertisement -