Re: sql server 2k parameterized queries

2006-03-23 Thread Bob
On 23/03/06, Bob <[EMAIL PROTECTED]> wrote: > ... thinking about it, is that the problem? Can I use a parameterized > statement when an entire where clause is dynamically generated? Unfortunately, it seems that that was the problem. Oops. When I use in the query to go through the E

Re: sql server 2k parameterized queries

2006-03-23 Thread Bob
erverDriver One other difference is that I am using the driver net.sourceforge.jtds.jdbc.Driver I'm also setting up the data source in tomcat's server.xml - but I guess thats not going to be your problem Bob

Re: sql server 2k parameterized queries

2006-03-23 Thread Bob
ally created and can be quite long, but the example which is falling over has just one entry) (WTRANS.EVENTCD="ABC" OR WTRANS.EVENTCD="DEF") ... thinking about it, is that the problem? Can I use a parameterized statement when an entire where clause is dynamically generated? Bob

sql server 2k parameterized queries

2006-03-22 Thread Bob
te any help or suggestions - I am prepared to consider anything! I've been really struggling with this and am stumped at the moment. Thanks a lot, Bob Ball

Re: calling stored functions

2006-02-02 Thread bob robertson
Aha!   But it seems like a good approach. What are the chances it will be integrated into a future release of iBatis? Anyone?   What attracts us to iBatis is that our SQL, and our mappings, are externalised. Now when we call stored procs / functions, which unfortunately we must in some situatio

Re: calling stored functions

2006-02-02 Thread bob robertson
Thanks for the help everyone, especially Mike.   I'm trying out the approach you suggested where no TypeHandler is required. But something is not working. My data is being inserted OK, but I'm getting nothing back. I've tested my stored func (Oracle 9i) and this works being called from another PL

Re: calling stored functions

2006-02-01 Thread bob robertson
Thanks, now I see how to convert an oracle ref cursor into a jdbc resultSet.   But that kind of defeats the point of using ibatis. Is it possible to take it a step further and map the columns of the resultSet so that iBatis returns me a list of java objects? Telefonieren Sie ohne weitere Kost

calling stored functions

2006-02-01 Thread bob robertson
  Just read http://opensource2.atlassian.com/confluence/oss/display/IBATIS/Oracle+REF+CURSOR+Solutions which seems to be a great solution to using ref cursors.   Is it possible to call a stored function instead of a stored procedure, and to obtain the cursor as a return value rather than an OUT

cascading insert of complex properties?

2006-01-20 Thread bob robertson
g up the wrong tree altogether?   Many thanks,   Bob Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!Jetzt Yahoo! Messenger installieren!