Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-29 Thread Andrus Adamchik
rds, Marc -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 11:10 AM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server I am surprised about autocommit making a difference vs. a m

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-29 Thread Marc Gabriel-Willem
Many thanks for your kind assistance, Best regards, Marc -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 11:10 AM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server I am surp

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-29 Thread Andrus Adamchik
lot Marc -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 2:48 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server On Apr 28, 2008, at 3:41 PM, Marc Gabriel-Willem wrote: Dear And

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-29 Thread Marc Gabriel-Willem
user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server On Apr 28, 2008, at 3:41 PM, Marc Gabriel-Willem wrote: > Dear Andrus, > > Have you got a chance to work on the problem? No, not yet. > For a summary, our investigations show that usin

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-28 Thread Andrus Adamchik
On Apr 28, 2008, at 3:41 PM, Marc Gabriel-Willem wrote: Dear Andrus, Have you got a chance to work on the problem? No, not yet. For a summary, our investigations show that using JDBC, the 'auto commit' attribute set to 'true' solve the problem. Is it possible to execute the stored procedur

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-28 Thread Marc Gabriel-Willem
roblem, even on error conditions. > > Andrus > > On Apr 21, 2008, at 6:20 PM, Marc Gabriel-Willem wrote: > >> Hi Andrus, >> >> We are using intensively the QueryResponse ;) >> >> Here is the problem; the call of the 'performGenericQuery' method >

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-22 Thread Marc Gabriel-Willem
esday, April 22, 2008 10:06 AM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server Ah, I used the MS driver. Let me also try it with jTDS when I have a bit more time. Andrus On Apr 22, 2008, at 10:59 AM, Marc Gabriel-Willem wrote:

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-22 Thread Andrus Adamchik
Sent: Monday, April 21, 2008 5:32 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server Then I didn't understand your question... In my test cases, using a manual transaction would prevent an exception and I could read the ou

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-22 Thread Marc Gabriel-Willem
ssage- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 5:32 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server Then I didn't understand your question... In my test cases, using a manual transactio

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-21 Thread Andrus Adamchik
o be able to handle the output parameters. Marc Gabriel -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 5:09 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server QueryResponse is the

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-21 Thread Marc Gabriel-Willem
situation, we need to be able to handle the output parameters. Marc Gabriel -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 5:09 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-21 Thread Andrus Adamchik
Do you have another idea for us? Thank you again. Marc Gabriel -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Sunday, April 20, 2008 5:10 PM To: user@cayenne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server I think

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-21 Thread Marc Gabriel-Willem
enne.apache.org Subject: Re: Stored proc returning result set (and output params) with MS SQL server I think I found the problem. It was not a stored procedure call per se, but a transaction surrounding it. When wrapping a JDBC failing SP call with "connection.setAutoCommit(false)" and &q

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-20 Thread Andrus Adamchik
I think I found the problem. It was not a stored procedure call per se, but a transaction surrounding it. When wrapping a JDBC failing SP call with "connection.setAutoCommit(false)" and "conneciton.commit()" I get the same error as with Cayenne. Here is how to handle this in Cayenne workaro

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-17 Thread Andrus Adamchik
So Cayenne calls the sp in the following format: {? = call spXXX(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)} In your JDBC test you do it like this: { call spXXX(?, ?, ?, ?, ?, ?, ?, ?, ?, ?) } I.e. no return value is specified. So what if you uncheck "returning value" checkbox for this stored proc

RE: Stored proc returning result set (and output params) with MS SQL server

2008-04-15 Thread Marc Gabriel-Willem
st on the fact that the crash occurs when the called stored procedure does not return any result set. Thank you again for your help. We appreciate very much. Marc Gabriel -Original Message- From: Andrus Adamchik [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 7:09 PM To: user@c

Re: Stored proc returning result set (and output params) with MS SQL server

2008-04-11 Thread Andrus Adamchik
Hi Marc Gabriel, For information, using JDBC directly the situation is handled correctly. Could you post the JDBC code you used to read the data? Andrus On Apr 10, 2008, at 3:36 PM, Marc Gabriel-Willem wrote: Dear all, First of all, thank you for your great product. We are using it

Stored proc returning result set (and output params) with MS SQL server

2008-04-10 Thread Marc Gabriel-Willem
Dear all, First of all, thank you for your great product. We are using it successfully since last year and we are very happy of the product quality. Few days ago, we found a problem with our stored procedures access. In order to illustrate you the problem in the best possible way, I'm