• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to handle RAISEERROR in Sybase using JDBC

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I am trying to access a Sybase stored procedure thru JDBC where that Procedure has many debug messages using "RAISEERROR 22000".
Ex:
[
select @str = "You are in the first line of the procedure"
RAISEERROR 22000 @str
.....]


When I am trying to call the SP using Callable statement the control is comingout as soon as it encountering the first "RaiseError block".

Is there anyway to supress these messages ,so that the control will till the last line of the SP.

Any help is appreciated.

Thanks in advance !!
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys anybody has idea about this. I am having same problem.
 
Martin Lira
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using sybase jdbc driver jconnect. The stored proc code cannot be modified to use PRINT.
reply
    Bookmark Topic Watch Topic
  • New Topic