ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scott.x.mcd...@jpmchase.com
Subject Can I get access to an iBatis query's content?
Date Wed, 04 Apr 2007 14:31:09 GMT
Hi there. I want to create a temp table to put some data in, and then run 
a query (JOIN) against that and some other table(s). 
My problem is however, that I'm using SQL Server, so cannot use iBatis to 
do this (as far as I can see) as there is a problem with creating 
temporary objects in SQL Server 2000 and earlier:

My next best theoretical solution to this one, and this is where I'm 
unclear as to whether this is possible, would be to *still* hold the 
"CREATE TABLE ...." sql in the iBatis XML, and in code, say:

I'm using Spring incidentaly, and I'd then pass the retrieved SQL to the 
JDBCTemplate for execution there as a non-prepared statement.

My question therefore is this - can I get the content (verbatim) of a 
named query from iBatis? I really don't want to have to code the SQL into 
the Java side.

Kind Regards


Scott McDaid
Application Developer
Corporate Technology
JP Morgan Chase
Alhambra House
45 Waterloo Street
G2 6HS 

+44 (0)141 228 5748
+44 (0)141 228 5111

This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

View raw message