Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    8

    Unanswered: Probelm Connecting to Sybase Database frrom J2EE Web Application

    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

  2. #2
    Join Date
    Jan 2005
    Posts
    362
    Quote Originally Posted by hemanthjava
    Hi,


    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.
    I think that it is obvious that the "error" is the 'SET CHAINED OFF' that may be somewhere? or something about the mode of the procedure?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •