Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Different results when running Store procedure from Java vs. running Stored Procedure directly.  RSS feed

 
Jeff Schuler
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When I run the SP directly I do this:



When I run it from Java it's like this:




The connection info is:


The following SQL code is behaving differently when the SP is called from Java:



The SP is updating a table from another database on another server. Does anyone know why the results would be different?

 
Jan Cumps
Bartender
Posts: 2628
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The proper way to call a stored procedure:


Use the proper brackets, use call before the procedure, use a callable statement, use prepareCall(),
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!