Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Jconn2.jar not capturing Error 277 from sybase
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul  
View profile  
 More options Apr 22 2008, 2:06 pm
Newsgroups: sybase.public.jconnect50
From: "Paul" <p...@sybase.com>
Date: 22 Apr 2008 11:06:22 -0700
Local: Tues, Apr 22 2008 2:06 pm
Subject: Re: Jconn2.jar not capturing Error 277 from sybase
Hi Karthick,

Also when you upgrade try setting a property in your connection string:

ServerInitiatedTransaction=false

and see if this resolves the problem.

-Paul

"Paul" <p...@sybase.com> wrote in message news:480e2854$1@forums-1-dub...
> Hi Karthick,

> This sounds familiar and I think the problem is resolved.  You never
> posted the
> exact jConnect version or provide jdbc details of your code like
> connection
> string, etc.

> I can't recall the original problem but it sounds familiar.  Try this and
> see if it works.
> If not post a sample of the test so we can see what the code looks like.

> -Paul

> <Karthick> wrote in message news:480de23f.532c.1681692777@sybase.com...
> We noticed if a stored procedure(in unchained mode) creating
> #temp tables is called inside a transaction scope,  the
> transaction is failing to rollback the transactions. Instead
> it commits all the transaction.

> However, the same procedure when called from ISQL connection
> from a transaction scope errors out Error 277 < Number (277)
> Severity (16) There was a transaction active when exiting
> the stored procedure 'testcheckhash'. The temporary table
> '#tabletimeperiod' was dropped in this transaction either
> explicitly or implicitly. This transaction has been aborted
> to prevent database corruption.>

> Other required details:
> ------------------------
> Database : Sybase ASE 12.5.3
> DB Server: Solaris
> Client : windows
> Java version : j2sdk1.4.2_05

> ISQL Code:
> ----------
> begin tran
> insert into sometable values (10)
> exec testcheckhash
> commit tran

> --<Procedure code>
> create procedure testcheckhash
> as
>    Begin
>            CREATE TABLE #tabletimeperiod (timeperiod
> VARCHAR(12))
>            DROP TABLE #tabletimeperiod
>     End
> go
> EXEC sp_procxmode 'dbo. testcheckhash','unchained'

> Same code when I execute from Java using jconn2.jar(Jconnect
> 5), I am getting no error instead the insert done on
> "sometable" doesnot get rolled back in the event of
> failure in the procedure.

> Can you let me know if any one else encountered this
> behavior and resolved it.

> Thanks in Advance,
> Karthick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.