ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mulltiple ResultSet Lines from Stored Procedure calls

Post new topic  Reply to topic
 Mulltiple ResultSet Lines from Stored Procedure calls « View previous topic :: View next topic » 
Author Message
plewton
PostPosted: Thu Mar 25, 2004 8:56 am    Post subject: Mulltiple ResultSet Lines from Stored Procedure calls Reply with quote

Novice

Joined: 20 May 2003
Posts: 14

Hi,

Running Msg Broker v5.0.2 on top of DB2 8.1.2. I'm only permitted to interact with my User database via DB2 Stored Procedures (my hands are tied firmly on this one by our standards team ). I've seen some correspondance and heard that that Msg Broker can't handle Result Sets with more than one row in them returned from a Stored Procedure.

Is this true? If not, what do I need to do when calling the Stored Procedure in order to get multiple line Result Sets returned?

Thanks.
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Mar 25, 2004 10:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

From ESQL reference manual,
Quote:

All external procedures have the following restrictions:
Parameters cannot be of the ESQL Reference type.
Parameters cannot map onto the database LOB types (for example, BLOB and CLOB).
Results sets cannot be returned or used as input or output parameters.


Also, if you use search on this site, you will find couple of discussions around this topic.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
mgk
PostPosted: Thu Mar 25, 2004 11:46 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You can work around this with the PASSTHRU function if you can accept a few restrictions:

The PASSTHRU function call can invoke a Stored Procedure that returns a SINGLE resultset (which may or may not have multiple rows - your choice). However it cannot use OUT or INOUT parameters, only IN parameters. It also cannot return scalar values as a retunr value.

There is an example of usage in the ESQL docs - search on PASSTHRU

Cheers,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mulltiple ResultSet Lines from Stored Procedure calls
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.