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 » ESQL PASSTHRU

Post new topic  Reply to topic
 ESQL PASSTHRU « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Thu Nov 03, 2011 11:18 am    Post subject: ESQL PASSTHRU Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I can get either of the following statements to work:

Code:
   SET OutputLocalEnvironment.Variables.ReturnStmt[] = SELECT * FROM Database.catalog;


or ...

Code:
   SET myVar = 'SELECT * FROM db2inst1.catalog';
   SET OutputLocalEnvironment.Variables.Return = PASSTHRU(myVar);


The documentation states that PASSTHRU is mostly used for administrative commands

Do most people gather data and use DELETE, UPDATE, INSERT, and SELECT statements without using PASSTHRU

Or would people use PASSTHRU for those statements

Is there any performance considerations to using either method
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Nov 03, 2011 11:24 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There are a number of common SQL options to SELECT that are not supported by the ESQL select - such as ORDER BY or GROUP BY.

So it is as common to use PASSTHRU instead of SELECT as it is to use an ORDER BY or GROUP BY clause in an SQL Query.
Back to top
View user's profile Send private message
Gideon
PostPosted: Thu Nov 03, 2011 11:36 am    Post subject: Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

Is PASSTHRU slower or faster than the normal SELECT method, or is there a difference
Back to top
View user's profile Send private message Send e-mail
Gaya3
PostPosted: Thu Nov 03, 2011 11:50 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Gideon wrote:
Is PASSTHRU slower or faster than the normal SELECT method, or is there a difference


I guess PASSTHRU is faster, as it take the sql statement directly to the DB and get it executed.
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
inMo
PostPosted: Mon Nov 07, 2011 11:34 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

Is your question:

What is PASSTHRU?
-or-
Why isn't my original SELECT code working?
-or-
What's faster?
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 » ESQL 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.