• 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

Executing a stored procedure returns false

 
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I'm using the following code to call a stored procedure and use the multiple result sets returned by the procedure.



The console prints false and i am unable to get the results.
The procedure as mentioned returns mutiple resultsets and I'm using Microsoft SQL server 2005. I did a call to this procedure from SQL editor and it works fine. Can someone let me know on what i am doing wrong here?

Thanks,
Srikkanth
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Srikkanth,
Does the stored procedure do any insert/update/deletes? If so, the stored procedure may be returning the # rows changed rather than the resultsets.
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you are right. It does some delete of temporary tables. So how would i get the resultsets , is it not possible?

Thanks for your help,
Srikkanth
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srikkanth Mohanasundaram wrote:Yes you are right. It does some delete of temporary tables. So how would i get the resultsets , is it not possible?


I would think it is possible. How to do so varies by database though. Conceptually, the stored procedure accumulates the result sets and returns them.
 
reply
    Bookmark Topic Watch Topic
  • New Topic