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 » Calling SP using PASSTHRU

Post new topic  Reply to topic
 Calling SP using PASSTHRU « View previous topic :: View next topic » 
Author Message
vandi
PostPosted: Wed Mar 11, 2009 2:44 pm    Post subject: Calling SP using PASSTHRU Reply with quote

Acolyte

Joined: 13 Dec 2008
Posts: 67

Hi All,

I was going thru the IBM Documentation(Infocenter) and also posts on SP for using Stored Procedures.
In IBM Infocenter, I see

Quote:
Do not use PASSTHRU to call stored procedures; instead, use the CALL statement because PASSTHRU imposes limitations (you cannot use output parameters, for example).


But, in some posts on SP it is suggested to use PASSTHRU to call SP.
I am confused about it.

Can you pls let m eknow if we can use PASSTHRU to call SP?


Thanks
Vandi
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Mar 11, 2009 2:51 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You can use PASSTHRU to call a stored procedure if you really want to, but I would like to know why you think you need to? Almost all the things you would want to call a procedure are available through the CALL / CREATE PROCEDURE route, except perhaps named parameters and default values. There would also be little difference in performance, infact it may actually be slower to use PASSTHRU to call an SP due to the internal caching that CALL does for procedures.

So please let me know why you think you need to do this, I'm intrigued
_________________
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
vandi
PostPosted: Wed Mar 11, 2009 2:58 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Dec 2008
Posts: 67

Hi,

Thanks for the info.
I have not used stored procedures before. To get complete understanding of it, I was going thru the posts as well as IBM documentation.
As it was mentioned in the documentation about not using PASSTHRU to call SP, I would like to know why it is so.


Thanks
Vandi
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Wed Mar 11, 2009 8:40 pm    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

vandi wrote:
.....I would like to know why it is so.


vandi wrote:
Quote:
Do not use PASSTHRU to call stored procedures; instead, use the CALL statement because PASSTHRU imposes limitations (you cannot use output parameters, for example).

_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
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 » Calling SP using PASSTHRU
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.