Hi,
As far as I know this is not actually possible.
iBatis uses ADO.Net command objects behind the scenes (as far as I
understand).
A command object does not provide access to the underlying SQL statement
that is to be executed once the parameters have been specified.

Alon Hirsch
Development Manager / Technical Architect


        eBAM Systems - Johannesburg
Glenstar House
Cnr Northfield & Queens Square
Glenhazel, JHB  
        +27 11 719 2222 
        +27 11 719 2051 / +27 86 531 4396       
        [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>    

The information contained in this e-mail message and in the documents
attached herewith (hereinafter "the Message") is intended only for the
individuals or the entity named above and is intended to be
confidential.  The Message contains information sent by eBAM Systems.
The reading of the Message or any retention. copying, dissemination,
distribution, disclosure of the existence of the Message or of its
contents, or any other use of the Message or any part thereof, by anyone
other than the intended recipient is strictly prohibited.  If you
received this message and you are not the intended recipient or agent
responsible for the delivery of this message to the intended recipient,
please refrain from reading it and notify us immediately by telephone
[+27] (0)11 719-2222 or telefax [+27] (0)11 719-2051, so that we can
co-ordinate with you erasure of the Message.
Although this e-mail and its attachments are believed to be free of any
virus or other defect, it is the responsibility of the recipient to
ensure that they are virus free, and no responsibility is accepted by
this firm for any loss or damage arising from receipt or use thereof.

 

________________________________

From: Vincent Apesa [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2008 20:09
To: [email protected]
Subject: Get SQL from Ibatis call


Is there a way to retreive the SQL generated from IBatis after it
processes a statement and it's parameters? 
 
I'd like to use Ibatis's dynamic query capability to save ad-hoc
reports.
 
thanks,
Vince

Reply via email to