AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Probelm Containing to Sybase Database frrom J2EE Web Applica

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
hemanthjava via JavaKB.co
Guest





PostPosted: Mon Jan 16, 2006 9:40 am    Post subject: Probelm Containing to Sybase Database frrom J2EE Web Applica Reply with quote



Hi,
I get the following error when I connect to the Sybase database from my
web-app. I put Set chained off in the procedure and nothing happenend. There
seems to be a probelm in the Java Side.

Exception :
------------

com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'p_inter_status_dz'
may be run only in unchained transaction mode. The 'SET CHAINED OFF' command
will cause the current session to use unchained transaction mode.

Note: My Stored Procedure call is surrounded with a try/catch/finally, always
closing the connection in the finally.

Regards,
Hemanth
http://www.javaprogrammingworld.com

--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-databases/200601/1
Back to top
joeNOSPAM@BEA.com
Guest





PostPosted: Mon Jan 16, 2006 3:56 pm    Post subject: Re: Probelm Containing to Sybase Database frrom J2EE Web App Reply with quote



Show the code. You probably set autoCommit(false) to do a transaction.
That
turns chained mode back on. Sybase retains the odd behavior of only
allowing
procedures to run (by default) in the chained/unchained mode during
which they
were created. The real solution is to use Sybase's sp_procxmode() to
tell the
DBMS to allow your procedure(s) to run in anymode.
HTH,
Joe Weinstein at BEA Systems

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.