• 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

Difference detween execute() and executeUpdate()..?

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am executing a sybase stored procedure from Java. I am explicitly raising an error in sybase stored proc using 'raiseerror @ERRORCODE, @ERRORMSG'. But if I execute this using callablestmt.execute() I am NOT getting any SQLException, however if I execute using callablestmt.executeUpdate() then i will get SQLException with error code and error message whatever i had given in the stored proc.

Please somebody help in undrastanding difference between these two.

Thanks and Regards,
Prashant
 
reply
    Bookmark Topic Watch Topic
  • New Topic